summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2021-02-09 07:09:54 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2021-02-09 07:09:54 (GMT)
commitbc1b24b16979879f7330a1bcf75b1cfdd07252cc (patch)
treead148322b8a8e962eb876972f7c9a8eb42bbec44 /src/plugins
parent2aaf3ff42a7b286f4c3266be1d32d0d84552e481 (diff)
Fixed plugins exit.
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/pglist.c5
1 files changed, 5 insertions, 0 deletions
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]);
}