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:
parent
05c8681336
commit
08c2a087d8
@ -119,10 +119,13 @@ IPluginRuntime *SourcePawnEngine2::LoadPlugin(ICompilation *co, const char *file
|
|||||||
|
|
||||||
pRuntime->ApplyCompilationOptions(co);
|
pRuntime->ApplyCompilationOptions(co);
|
||||||
|
|
||||||
|
fclose(fp);
|
||||||
|
|
||||||
return pRuntime;
|
return pRuntime;
|
||||||
|
|
||||||
return_error:
|
return_error:
|
||||||
*err = error;
|
*err = error;
|
||||||
|
fclose(fp);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user