Crash bug, I squash you.
Crash bug, I squash you.
Fixed bug where returning false in Load() after adding a Metamod event listener or hooking a function could cause a crash.
1.1 --- a/sourcemm/CPlugin.cpp Wed Jul 19 07:06:28 2006 +0000
1.2 +++ b/sourcemm/CPlugin.cpp Thu Jul 20 10:53:06 2006 +0000
1.3 @@ -384,6 +384,10 @@
1.4
1.5 if (pl->m_Lib && (pl->m_Status < Pl_Paused))
1.6 {
1.7 + pl->m_Events.clear();
1.8 + g_SourceHook.UnloadPlugin(pl->m_Id);
1.9 + UnregAllConCmds(pl);
1.10 +
1.11 dlclose(pl->m_Lib);
1.12 pl->m_Lib = NULL;
1.13 pl->m_API = NULL;
2.1 --- a/sourcemm/changelog.txt Wed Jul 19 07:06:28 2006 +0000
2.2 +++ b/sourcemm/changelog.txt Thu Jul 20 10:53:06 2006 +0000
2.3 @@ -4,6 +4,8 @@
2.4 - Fixed bug where Metamod:Source could load the wrong GameDLL and/or load more than one
2.5 GameDLL. This issue occured in HL2 CTF, SourceForts, or any other mod that relied on
2.6 files from another mod directory.
2.7 + - Fixed bug where returning false in Load() after adding a Metamod event listener or
2.8 + hooking a function could cause a crash.
2.9
2.10 2006/06/14 1.2.3:
2.11 - Added SourceHook API for manual recalls: RETURN_META_(VALUE_)MNEWPARAMS