Skip to content

Commit

Permalink
Fixed referencing of released m_pCallingConvention on Source.Python u…
Browse files Browse the repository at this point in the history
…nload. (#387)
  • Loading branch information
CookStar committed Feb 11, 2021
1 parent 89273cd commit bb0a3e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/sp_main.cpp 100644 → 100755
Expand Up @@ -370,9 +370,6 @@ bool CSourcePython::Load( CreateInterfaceFn interfaceFactory, CreateInterfaceFn
void CSourcePython::Unload( void )
{
Msg(MSG_PREFIX "Unloading...\n");

DevMsg(1, MSG_PREFIX "Unhooking all functions...\n");
GetHookManager()->UnhookAllFunctions();

#if defined(ENGINE_ORANGEBOX) || defined(ENGINE_BMS) || defined(ENGINE_GMOD)
if (m_pOldSpewOutputFunc)
Expand All @@ -387,10 +384,13 @@ void CSourcePython::Unload( void )

DevMsg(1, MSG_PREFIX "Resetting cache notifier...\n");
modelcache->SetCacheNotify(m_pOldMDLCacheNotifier);

DevMsg(1, MSG_PREFIX "Shutting down python...\n");
g_PythonManager.Shutdown();

DevMsg(1, MSG_PREFIX "Unhooking all functions...\n");
GetHookManager()->UnhookAllFunctions();

DevMsg(1, MSG_PREFIX "Clearing all commands...\n");
ClearAllCommands();

Expand Down

0 comments on commit bb0a3e8

Please sign in to comment.