Skip to content

Commit

Permalink
fix the reference count
Browse files Browse the repository at this point in the history
WIP: I don't know exactly why...
  • Loading branch information
Xmader committed Sep 24, 2024
1 parent c63b609 commit 9474990
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/PyListProxyHandler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,9 @@ static bool array_fill(JSContext *cx, unsigned argc, JS::Value *vp) {
}
}

if (!setItemCalled) {
Py_DECREF(fillValueItem);
Py_INCREF(fillValueItem);
if (setItemCalled) {
Py_INCREF(fillValueItem);
}

// return ref to self
Expand Down

0 comments on commit 9474990

Please sign in to comment.