Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-03-08 12:42:24 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2022-03-24 12:44:33 +0300
commitc3fed26f3764937c0e6b14b1507645d17120b9c3 (patch)
tree8727c5390beeccfae396d8abf31083fe2fe85b64
parentfe6999352a8d0aad134645f9a67188e45a30d18a (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.c1
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);
}
/**