diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2009-02-07 08:11:01 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2009-02-07 08:11:01 +0100 |
commit | 1491699706851558895f86caa2ff84b440ac5e6f (patch) | |
tree | 7bd0c87e5d25812c51164c5606c0456c34c407d0 /src/plugins/plugin.c | |
parent | 52f68cc615308c9e19f3186dd371b96a0519a9ef (diff) | |
download | weechat-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.c | 3 |
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) |