We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 56d91ac + e279888 commit 23e8622Copy full SHA for 23e8622
src/pya/pya/pyaCallables.cc
@@ -49,7 +49,7 @@ pya_object_deallocate (PyObject *self)
49
// may trigger a GC (https://github.com/KLayout/klayout/issues/1054).
50
// According to the comments this may be turned into a release mode assertion, so
51
// we better work around it.
52
- ++self->ob_refcnt;
+ Py_IncRef(self);
53
54
// Mute Python warnings in debug case
55
PyObject_GC_UnTrack (self);
0 commit comments