1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 23:06:38 +02:00

Add hidden command line option --no-dlclose to remove dlclose() for unloaded plugins (useful when using valgrind)

This commit is contained in:
Sebastien Helleu
2009-02-07 08:11:01 +01:00
parent 52f68cc615
commit 1491699706
3 changed files with 14 additions and 1 deletions
+2 -1
View File
@@ -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)