Skip to content

Commit 06d8288

Browse files
committed
fix: reference count
1 parent 842c158 commit 06d8288

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/JobQueue.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ void JobQueue::promiseRejectionTracker(JSContext *cx,
147147
Py_DECREF(pmModule);
148148
Py_DECREF(exceptionHandler);
149149
}
150-
Py_DECREF(customHandler);
150+
Py_DECREF(customHandler);
151+
151152
// Go ahead and send this unhandled Promise rejection to the exception handler on the Python event-loop
152153
PyObject *pyFuture = PromiseType::getPyObject(cx, promise); // ref count == 2
153154
// Unhandled Future object calls the event-loop exception handler in its destructor (the `__del__` magic method)

0 commit comments

Comments
 (0)