diff options
author | Campbell Barton <campbell@blender.org> | 2022-03-08 12:42:24 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2022-03-24 12:44:33 +0300 |
commit | c3fed26f3764937c0e6b14b1507645d17120b9c3 (patch) | |
tree | 8727c5390beeccfae396d8abf31083fe2fe85b64 /source/blender | |
parent | fe6999352a8d0aad134645f9a67188e45a30d18a (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.
Diffstat (limited to 'source/blender')
-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 5102aa17250..33162fdc35c 100644 --- a/source/blender/python/intern/bpy_driver.c +++ b/source/blender/python/intern/bpy_driver.c @@ -427,6 +427,7 @@ static void bpy_pydriver_namespace_add_depsgraph(PyObject *driver_vars, PyErr_Print(); PyErr_Clear(); } + Py_DECREF(py_depsgraph); } /** |