1
0

NetworkSingleton: Fixed an object leak upon termination.

This commit is contained in:
Mattes D 2017-06-16 23:30:46 +02:00 committed by Lukas Pioch
parent 0f21bda12c
commit bb020bbe78

View File

@ -149,6 +149,7 @@ void cNetworkSingleton::RunEventLoop(cNetworkSingleton * a_Self)
timeval timeout{}; // Zero timeout - execute immediately
evtimer_add(timer, &timeout);
event_base_loop(a_Self->m_EventBase, EVLOOP_NO_EXIT_ON_EMPTY);
event_free(timer);
}