From 08c2a087d8f12450eb3aead96fe1d5d16d0eb388 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 28 Aug 2008 16:59:41 +0000 Subject: [PATCH] Fixed plugins not being unloadable from files not being closed (amb 1875). --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402478 --- sourcepawn/jit/engine2.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sourcepawn/jit/engine2.cpp b/sourcepawn/jit/engine2.cpp index eeae092e4..25957f052 100644 --- a/sourcepawn/jit/engine2.cpp +++ b/sourcepawn/jit/engine2.cpp @@ -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; }