]> git.sesse.net Git - vlc/commitdiff
Do not unload plugins in debug builds. Not sure if this is a good idea though
authorRémi Denis-Courmont <rem@videolan.org>
Sat, 19 May 2007 19:50:57 +0000 (19:50 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sat, 19 May 2007 19:50:57 +0000 (19:50 +0000)
src/modules/modules.c

index 274807a62e5ecda63b888ea2acb6ca6055c71356..f10ed549137a0f99bb0f2f75f6f72d04a0f539e8 100644 (file)
@@ -1493,7 +1493,9 @@ static void CloseModule( module_handle_t handle )
     FreeLibrary( handle );
 
 #elif defined(HAVE_DL_DLOPEN)
+# ifndef NDEBUG
     dlclose( handle );
+# endif
 
 #elif defined(HAVE_DL_SHL_LOAD)
     shl_unload( handle );