NetworkSingleton: Fixed an object leak upon termination.
This commit is contained in:
parent
0f21bda12c
commit
bb020bbe78
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user