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
parent 10c11bb897
commit 1c1efe3ac6
Notes: blender-bot 2023-02-14 01:52:41 +01:00
Referenced by issue #88449: Blender LTS: Maintenance Task 2.93
Referenced by issue #88449, Blender LTS: Maintenance Task 2.93
Referenced by issue #96241, 3.1: Potential candidates for corrective releases
1 changed files with 1 additions and 0 deletions

View File

@ -401,6 +401,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,