diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2023-04-14 04:56:32 +0000 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2023-04-14 04:56:32 +0000 |
commit | c2a714f348d6848037f072063e0a914fd537c4f4 (patch) | |
tree | 927e988e7d2235a9a38b29b1014727482914a073 | |
parent | 3be5116537e45984ecaf8f6c522ff6613aa7d9d4 (diff) | |
parent | 1b49495e762e051d60c7e2efda038de9eea4a214 (diff) | |
download | gjs-c2a714f348d6848037f072063e0a914fd537c4f4.tar.gz |
Merge branch 'fix-issue-472' into 'master'
context: Clear all vectors of JS::Heap on dispose
Closes #472
See merge request GNOME/gjs!834
-rw-r--r-- | gjs/context.cpp | 3 |
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; |