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 <ideasman42@gmail.com>2012-12-08 05:16:59 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-12-08 05:16:59 +0400
commitadf7bfa8bb530db8baf7c07dd296851658ee925e (patch)
tree2e8c7925b420f4c18aa85d76a1e3275a829d027b /source/blender/python/mathutils/mathutils_geometry.c
parent0bca862e9c6a20bd5a69a370bee7c4da3e187e46 (diff)
ifdef out dynstr so mathutils can be compiled as an external module again.
Diffstat (limited to 'source/blender/python/mathutils/mathutils_geometry.c')
-rw-r--r--source/blender/python/mathutils/mathutils_geometry.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/python/mathutils/mathutils_geometry.c b/source/blender/python/mathutils/mathutils_geometry.c
index 22317636faa..1db0538eb07 100644
--- a/source/blender/python/mathutils/mathutils_geometry.c
+++ b/source/blender/python/mathutils/mathutils_geometry.c
@@ -973,12 +973,14 @@ static PyObject *M_Geometry_points_in_planes(PyObject *UNUSED(self), PyObject *a
float n1n2[3], n2n3[3], n3n1[3];
float potentialVertex[3];
- char *planes_used = MEM_callocN(sizeof(char) * len, __func__);
+ char *planes_used = PyMem_Malloc(sizeof(char) * len);
/* python */
PyObject *py_verts = PyList_New(0);
PyObject *py_plene_index = PyList_New(0);
+ memset(planes_used, 0, sizeof(char) * len);
+
for (i = 0; i < len; i++) {
const float *N1 = planes[i];
for (j = i + 1; j < len; j++) {
@@ -1031,7 +1033,7 @@ static PyObject *M_Geometry_points_in_planes(PyObject *UNUSED(self), PyObject *a
Py_DECREF(item);
}
}
- MEM_freeN(planes_used);
+ PyMem_Free(planes_used);
{
PyObject *ret = PyTuple_New(2);