Fixed various memory issues. (bug 5766, r=asherkin)

This commit is contained in:
Kyle Sanderson
2013-08-12 00:44:22 +01:00
parent 3d4e1ffd64
commit 86c699dd36
6 changed files with 18 additions and 14 deletions
+3 -1
View File
@@ -2605,10 +2605,12 @@ SMPlugin *CPluginManager::FindPluginByConsoleArg(const char *arg)
smcore.Format(pluginfile, sizeof(pluginfile), "%s%s", arg, ext);
CPlugin **pluginpp = m_LoadLookup.retrieve(pluginfile);
if (!pluginpp || !*pluginpp)
if (!pluginpp)
{
return NULL;
}
pl = *pluginpp;
}
return pl;