summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/plugins.c2
-rw-r--r--weechat/src/plugins/plugins.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/plugins.c b/src/plugins/plugins.c
index b8dcbe6b9..80b87922f 100644
--- a/src/plugins/plugins.c
+++ b/src/plugins/plugins.c
@@ -854,7 +854,7 @@ void
plugin_unload_all ()
{
while (weechat_plugins)
- plugin_unload (weechat_plugins);
+ plugin_unload (last_weechat_plugin);
}
/*
diff --git a/weechat/src/plugins/plugins.c b/weechat/src/plugins/plugins.c
index b8dcbe6b9..80b87922f 100644
--- a/weechat/src/plugins/plugins.c
+++ b/weechat/src/plugins/plugins.c
@@ -854,7 +854,7 @@ void
plugin_unload_all ()
{
while (weechat_plugins)
- plugin_unload (weechat_plugins);
+ plugin_unload (last_weechat_plugin);
}
/*