diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-03-04 07:06:15 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-03-04 07:18:10 +0300 |
commit | a40ccde405211b82eed8259b1afaa43dc41fa6a6 (patch) | |
tree | 6a65dcdea743f72308bc54a80678461cd9242e84 /source/blender/python/gpu/gpu_py_batch.c | |
parent | 0d28e2a334a10d75c2c10054dddefabfc8766840 (diff) |
Fix logic for calling PyObject_GC_UnTrack
All tracked objects need a matching un-track,
also remove redundant Py_XDECREF call.
Diffstat (limited to 'source/blender/python/gpu/gpu_py_batch.c')
-rw-r--r-- | source/blender/python/gpu/gpu_py_batch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/gpu/gpu_py_batch.c b/source/blender/python/gpu/gpu_py_batch.c index ef795268158..8e803350b53 100644 --- a/source/blender/python/gpu/gpu_py_batch.c +++ b/source/blender/python/gpu/gpu_py_batch.c @@ -279,8 +279,8 @@ static void pygpu_batch__tp_dealloc(BPyGPUBatch *self) GPU_batch_discard(self->batch); #ifdef USE_GPU_PY_REFERENCES + PyObject_GC_UnTrack(self); if (self->references) { - PyObject_GC_UnTrack(self); pygpu_batch__tp_clear(self); Py_XDECREF(self->references); } |