]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
FFI: Properly unload loaded DLLs.
authorMike Pall <mike>
Wed, 24 Jul 2013 21:49:19 +0000 (23:49 +0200)
committerMike Pall <mike>
Wed, 24 Jul 2013 21:49:19 +0000 (23:49 +0200)
src/lj_clib.c

index 23d1f18224dd41a836908dccfd6f32086328229b..dd903a73b649062ffb0d976efd97aa5c4ae5f219 100644 (file)
@@ -220,7 +220,7 @@ static void clib_unloadlib(CLibrary *cl)
        FreeLibrary((HINSTANCE)h);
       }
     }
-  } else if (!cl->handle) {
+  } else if (cl->handle) {
     FreeLibrary((HINSTANCE)cl->handle);
   }
 }