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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user