cNetwork: Added self pointers to keep objects alive for callbacks.
Ref.: http://forum.mc-server.org/showthread.php?tid=1700&pid=17947#pid17947
This commit is contained in:
@@ -88,6 +88,8 @@ cNetworkSingleton::~cNetworkSingleton()
|
||||
// Free the underlying LibEvent objects:
|
||||
evdns_base_free(m_DNSBase, true);
|
||||
event_base_free(m_EventBase);
|
||||
|
||||
libevent_global_shutdown();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user