[Bf-blender-cvs] [7ec5a68091a] blender2.8: Fix T58240: mathutils.noise.voronoi crash
Campbell Barton
noreply at git.blender.org
Fri Nov 30 01:23:14 CET 2018
Commit: 7ec5a68091a8ed3eb066fca832eb26a3692ea654
Author: Campbell Barton
Date: Fri Nov 30 11:22:17 2018 +1100
Branches: blender2.8
https://developer.blender.org/rB7ec5a68091a8ed3eb066fca832eb26a3692ea654
Fix T58240: mathutils.noise.voronoi crash
===================================================================
M source/blender/python/mathutils/mathutils_noise.c
===================================================================
diff --git a/source/blender/python/mathutils/mathutils_noise.c b/source/blender/python/mathutils/mathutils_noise.c
index 05a1cd43530..5e3e86c8ddf 100644
--- a/source/blender/python/mathutils/mathutils_noise.c
+++ b/source/blender/python/mathutils/mathutils_noise.c
@@ -970,7 +970,6 @@ static PyObject *M_Noise_voronoi(PyObject *UNUSED(self), PyObject *args, PyObjec
for (i = 0; i < 4; i++) {
PyObject *v = Vector_CreatePyObject(pa + 3 * i, 3, NULL);
PyList_SET_ITEM(list, i, v);
- Py_DECREF(v);
}
ret = Py_BuildValue("[[ffff]O]", da[0], da[1], da[2], da[3], list);
More information about the Bf-blender-cvs
mailing list