Fixed crash when using ISourcePawnEngine2::LoadPlugin with a non-existant file.

This commit is contained in:
David Anderson 2008-10-26 23:40:24 -05:00
parent 67ba04bcee
commit 547f7aecc1

View File

@ -125,7 +125,10 @@ IPluginRuntime *SourcePawnEngine2::LoadPlugin(ICompilation *co, const char *file
return_error:
*err = error;
fclose(fp);
if (fp != NULL)
{
fclose(fp);
}
return NULL;
}