From 2446f62180283f3c4bd806eee5e13beeb7f017f1 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Fri, 12 Sep 2014 19:39:14 -0700 Subject: [PATCH] Do not call dlclose on modules This apparently can cause issues with certain modules (as noted by faruton with his browser plugin) --- libobs/obs-module.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libobs/obs-module.c b/libobs/obs-module.c index 73b547fcd..c54653ac6 100644 --- a/libobs/obs-module.c +++ b/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);