diff options
author | Campbell Barton <campbell@blender.org> | 2022-03-08 12:42:24 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-03-08 12:47:43 +0300 |
commit | 1c1efe3ac605b187254377058c93fd34c94aaf9a (patch) | |
tree | 8a117b08c4d10272ee383c9a9e9b2cf4a68c119c | |
parent | 10c11bb89736d19f06131378dc539fb225b9b562 (diff) |
Fix memory leak evaluating PyDrivers
Missed decref in 686ab4c9401a90b22fb17e46c992eb513fe4f693 caused every
driver evaluation to create the BPy_StructRNA depsgraph without freeing
the previously allocated depsgraph.
-rw-r--r-- | source/blender/python/intern/bpy_driver.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_driver.c b/source/blender/python/intern/bpy_driver.c index 61bb183068d..e2b6b2bec29 100644 --- a/source/blender/python/intern/bpy_driver.c +++ b/source/blender/python/intern/bpy_driver.c @@ -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, |