summaryrefslogtreecommitdiff
path: root/src/plugins/plugin.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-02-07 08:11:01 +0100
committerSebastien Helleu <flashcode@flashtux.org>2009-02-07 08:11:01 +0100
commit1491699706851558895f86caa2ff84b440ac5e6f (patch)
tree7bd0c87e5d25812c51164c5606c0456c34c407d0 /src/plugins/plugin.c
parent52f68cc615308c9e19f3186dd371b96a0519a9ef (diff)
downloadweechat-1491699706851558895f86caa2ff84b440ac5e6f.zip
Add hidden command line option --no-dlclose to remove dlclose() for unloaded plugins (useful when using valgrind)
Diffstat (limited to 'src/plugins/plugin.c')
-rw-r--r--src/plugins/plugin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/plugin.c b/src/plugins/plugin.c
index 636734722..e7538beb2 100644
--- a/src/plugins/plugin.c
+++ b/src/plugins/plugin.c
@@ -745,7 +745,8 @@ plugin_remove (struct t_weechat_plugin *plugin)
/* free data */
if (plugin->filename)
free (plugin->filename);
- dlclose (plugin->handle);
+ if (!weechat_plugin_no_dlclose)
+ dlclose (plugin->handle);
if (plugin->name)
free (plugin->name);
if (plugin->description)