Fix incorrect null pointer check
parent
9f9d4ebb33
commit
f5cd330678
|
@ -58,12 +58,12 @@ bool LoadPlugin()
|
|||
|
||||
void UnloadPlugin()
|
||||
{
|
||||
if (thePlugin->GetSettings()->hotkeyID)
|
||||
OBSDeleteHotkey(thePlugin->GetSettings()->hotkeyID);
|
||||
|
||||
if(thePlugin)
|
||||
{
|
||||
delete thePlugin;
|
||||
if (thePlugin->GetSettings()->hotkeyID)
|
||||
OBSDeleteHotkey(thePlugin->GetSettings()->hotkeyID);
|
||||
|
||||
delete thePlugin;
|
||||
thePlugin = NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue