Skip to content

Commit 5ed221b

Browse files
committed
fix(pythonmonkey): delete the JobQueue & JSContext
in the correct order
1 parent f8aafd8 commit 5ed221b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/modules/pythonmonkey/pythonmonkey.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,9 @@ PyTypeObject JSObjectItemsProxyType = {
258258

259259
static void cleanup() {
260260
delete autoRealm;
261+
if (GLOBAL_CX) JS_DestroyContext(GLOBAL_CX);
261262
delete global;
262263
delete JOB_QUEUE;
263-
if (GLOBAL_CX) JS_DestroyContext(GLOBAL_CX);
264264
JS_ShutDown();
265265
}
266266

0 commit comments

Comments
 (0)