Fix memory leak evaluating PyDrivers

Missed decref in 686ab4c940 caused every
driver evaluation to create the BPy_StructRNA depsgraph without freeing
the previously allocated depsgraph.
This commit is contained in:
Campbell Barton 2022-03-08 20:42:24 +11:00 committed by Philipp Oeser
parent fe6999352a
commit c3fed26f37
Notes: blender-bot 2023-02-14 06:49:57 +01:00
Referenced by issue #88449: Blender LTS: Maintenance Task 2.93
Referenced by issue #88449, Blender LTS: Maintenance Task 2.93
1 changed files with 1 additions and 0 deletions

View File

@ -427,6 +427,7 @@ static void bpy_pydriver_namespace_add_depsgraph(PyObject *driver_vars,
PyErr_Print();
PyErr_Clear();
}
Py_DECREF(py_depsgraph);
}
/**