mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
task: Fix refcount leak when assigning attribute of task object
Regression on 1.11
This commit is contained in:
parent
4b748d1aba
commit
f1f15a92a4
@ -301,7 +301,6 @@ __setattr__(PyObject *self, PyObject *attr, PyObject *v) {
|
||||
|
||||
PyObject *descr = _PyType_Lookup(Py_TYPE(self), attr);
|
||||
if (descr != nullptr) {
|
||||
Py_INCREF(descr);
|
||||
descrsetfunc f = descr->ob_type->tp_descr_set;
|
||||
if (f != nullptr) {
|
||||
return f(descr, self, v);
|
||||
|
Loading…
x
Reference in New Issue
Block a user