From bc1b24b16979879f7330a1bcf75b1cfdd07252cc Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Tue, 9 Feb 2021 08:09:54 +0100 Subject: Fixed plugins exit. --- src/plugins/pglist.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/pglist.c b/src/plugins/pglist.c index bbd2d36..dd4e127 100644 --- a/src/plugins/pglist.c +++ b/src/plugins/pglist.c @@ -167,6 +167,11 @@ void exit_all_plugins(void) if (_pg_list[i] == NULL) continue; + pg_iface = g_plugin_module_get_interface(_pg_list[i]); + + if (pg_iface == NULL || !pg_iface->container) + continue; + g_object_unref(_pg_list[i]); } -- cgit v0.11.2-87-g4458