summaryrefslogtreecommitdiff
path: root/src/rost.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-11-01 21:36:50 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-11-01 21:36:50 (GMT)
commitce33112cf8c913635402cb8b6d127f9ac9f2b6b5 (patch)
tree731eaf0f50df1cc8033decbfce879b51ce5757e9 /src/rost.c
parent4eebf4a8752464691053fa3706ea6be9413676fa (diff)
Fix various memory leaks.
Diffstat (limited to 'src/rost.c')
-rw-r--r--src/rost.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rost.c b/src/rost.c
index e9a7ccb..337b013 100644
--- a/src/rost.c
+++ b/src/rost.c
@@ -459,16 +459,18 @@ int main(int argc, char **argv)
/* Sortie */
- unload_all_core_components(false);
-
#ifdef TRACK_GOBJECT_LEAKS
remember_gtypes_for_leaks();
#endif
+ unload_all_core_components(true);
+
#ifdef TRACK_GOBJECT_LEAKS
dump_remaining_gtypes();
#endif
+ exit_all_plugins();
+
done:
return result;