From d0d08800ef6d60f59c904671b43642b8d2b8e743 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 4 Jun 2006 01:05:20 +0000 Subject: [PATCH] what --- amxmodx/CPlugin.cpp | 18 +++++++++++------- amxmodx/libraries.h | 8 ++++++-- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/amxmodx/CPlugin.cpp b/amxmodx/CPlugin.cpp index d7a1bbfc..de8327f3 100755 --- a/amxmodx/CPlugin.cpp +++ b/amxmodx/CPlugin.cpp @@ -541,29 +541,26 @@ void CPluginMngr::CacheAndLoadModules(const char *plugin) CVector expects; CVector defaults; + CStack delstack; for (int i=0; icmd == LibCmd_ForceLib) { RunLibCommand(dc); - delete dc; } else if ( (dc->cmd == LibCmd_ExpectClass) || (dc->cmd == LibCmd_ExpectLib) ) { expects.push_back(dc); } else if (dc->cmd == LibCmd_DefaultLib) { defaults.push_back(dc); - } else { - delete dc; } - } else { - delete dc; } } } @@ -571,12 +568,19 @@ void CPluginMngr::CacheAndLoadModules(const char *plugin) for (size_t i=0; i