Fixed crash when using ISourcePawnEngine2::LoadPlugin with a non-existant file.
This commit is contained in:
parent
67ba04bcee
commit
547f7aecc1
@ -125,7 +125,10 @@ IPluginRuntime *SourcePawnEngine2::LoadPlugin(ICompilation *co, const char *file
|
|||||||
|
|
||||||
return_error:
|
return_error:
|
||||||
*err = error;
|
*err = error;
|
||||||
fclose(fp);
|
if (fp != NULL)
|
||||||
|
{
|
||||||
|
fclose(fp);
|
||||||
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user