Fix logic for calling PyObject_GC_UnTrack
All tracked objects need a matching un-track, also remove redundant Py_XDECREF call.
This commit is contained in:
@@ -203,10 +203,8 @@ static const EnumPropertyItem property_subtype_array_items[] = {
|
||||
|
||||
static void bpy_prop_deferred_dealloc(BPy_PropDeferred *self)
|
||||
{
|
||||
if (self->kw) {
|
||||
PyObject_GC_UnTrack(self);
|
||||
Py_CLEAR(self->kw);
|
||||
}
|
||||
PyObject_GC_UnTrack(self);
|
||||
Py_CLEAR(self->kw);
|
||||
PyObject_GC_Del(self);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user