Browse Source

Do not call dlclose on modules

This apparently can cause issues with certain modules (as noted by
faruton with his browser plugin)
jp9000 11 years ago
parent
commit
2446f62180
1 changed files with 3 additions and 1 deletions
  1. 3 1
      libobs/obs-module.c

+ 3 - 1
libobs/obs-module.c

@@ -355,7 +355,9 @@ void free_module(struct obs_module *mod)
 		if (mod->loaded && mod->unload)
 			mod->unload();
 
-		os_dlclose(mod->module);
+		/* there is no real reason to close the dynamic libraries,
+		 * and sometimes this can cause issues. */
+		/* os_dlclose(mod->module); */
 	}
 
 	bfree(mod->bin_path);