summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gjs/context.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/gjs/context.cpp b/gjs/context.cpp
index 59ac8afd..6c66f1ac 100644
--- a/gjs/context.cpp
+++ b/gjs/context.cpp
@@ -471,6 +471,9 @@ void GjsContextPrivate::dispose(void) {
delete m_gtype_table;
delete m_atoms;
+ m_job_queue.clear();
+ m_object_init_list.clear();
+
/* Tear down JS */
JS_DestroyContext(m_cx);
m_cx = nullptr;