Fixed plugins not being unloadable from files not being closed (amb 1875).

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402478
This commit is contained in:
David Anderson 2008-08-28 16:59:41 +00:00
parent 05c8681336
commit 08c2a087d8

View File

@ -119,10 +119,13 @@ IPluginRuntime *SourcePawnEngine2::LoadPlugin(ICompilation *co, const char *file
pRuntime->ApplyCompilationOptions(co);
fclose(fp);
return pRuntime;
return_error:
*err = error;
fclose(fp);
return NULL;
}