diff --git a/amxmodx/meta_api.cpp b/amxmodx/meta_api.cpp index 53ad778a..1f2ff507 100755 --- a/amxmodx/meta_api.cpp +++ b/amxmodx/meta_api.cpp @@ -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();