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 dd1112abe6
commit eff7e9aa45
Notes: blender-bot 2023-02-14 11:07:28 +01:00
Referenced by issue #96241, 3.1: Potential candidates for corrective releases
1 changed files with 1 additions and 0 deletions

View File

@ -415,6 +415,7 @@ static void bpy_pydriver_namespace_add_depsgraph(PyObject *driver_vars,
PyErr_Print();
PyErr_Clear();
}
Py_DECREF(py_depsgraph);
}
float BPY_driver_exec(struct PathResolvedRNA *anim_rna,