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:
2022-03-08 20:42:24 +11:00
parent 10c11bb897
commit 1c1efe3ac6

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,