Skip to content

Commit

Permalink
[Project64] Make sure closeDll is set before calling it
Browse files Browse the repository at this point in the history
  • Loading branch information
project64 committed Nov 26, 2018
1 parent 529b162 commit 6c2c0d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/Project64-core/Plugins/PluginBase.cpp
Expand Up @@ -231,7 +231,10 @@ void CPlugin::Close(RenderWindow * Render)
WriteTrace(PluginTraceType(), TraceDebug, "(%s): Start", PluginType());
RomClose(Render);
m_Initialized = false;
CloseDLL();
if (CloseDLL != NULL)
{
CloseDLL();
}
WriteTrace(PluginTraceType(), TraceDebug, "(%s): Done", PluginType());
}

Expand Down

0 comments on commit 6c2c0d5

Please sign in to comment.