summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-02-07 20:46:35 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-02-07 20:46:35 (GMT)
commitdbdd42585e8aa3333010bd57f0cd1129ac3c1d2f (patch)
treea84dddf8f782c70a4318b2304449b2f38b0b5544 /plugins
parent3da6844c02f4041998ec655c19c7987e875adaf8 (diff)
Included the leak tracker into the Python interpreter.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/pychrysalide/pychrysa.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/pychrysalide/pychrysa.c b/plugins/pychrysalide/pychrysa.c
index 723c2bc..4cb18d9 100644
--- a/plugins/pychrysalide/pychrysa.c
+++ b/plugins/pychrysalide/pychrysa.c
@@ -34,6 +34,7 @@
#include <config.h>
+#include <gleak.h>
#include <common/cpp.h>
#include <common/environment.h>
#include <common/extstr.h>
@@ -309,6 +310,11 @@ static void PyExit_pychrysalide(void)
set_current_project(NULL);
+#ifdef TRACK_GOBJECT_LEAKS
+ if (_standalone)
+ dump_remaining_gtypes();
+#endif
+
}