Possible memory leaks on deattach (#912)
Co-authored-by: shel <2@shelru.ru>
This commit is contained in:
parent
c81f68aac3
commit
a4e929eedc
@ -776,6 +776,14 @@ void C_ServerDeactivate_Post()
|
||||
g_plugins.clear();
|
||||
g_langMngr.Clear();
|
||||
|
||||
ArrayHandles.clear();
|
||||
TrieHandles.clear();
|
||||
TrieIterHandles.clear();
|
||||
TrieSnapshotHandles.clear();
|
||||
DataPackHandles.clear();
|
||||
TextParsersHandles.clear();
|
||||
GameConfigHandle.clear();
|
||||
|
||||
g_CvarManager.OnPluginUnloaded();
|
||||
|
||||
ClearPluginLibraries();
|
||||
@ -1731,6 +1739,14 @@ C_DLLEXPORT int Meta_Detach(PLUG_LOADTIME now, PL_UNLOAD_REASON reason)
|
||||
g_plugins.clear();
|
||||
g_langMngr.Clear();
|
||||
|
||||
ArrayHandles.clear();
|
||||
TrieHandles.clear();
|
||||
TrieIterHandles.clear();
|
||||
TrieSnapshotHandles.clear();
|
||||
DataPackHandles.clear();
|
||||
TextParsersHandles.clear();
|
||||
GameConfigHandle.clear();
|
||||
|
||||
ClearMessages();
|
||||
|
||||
modules_callPluginsUnloaded();
|
||||
|
Loading…
Reference in New Issue
Block a user