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>2010-04-16 12:17:13 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-04-16 12:17:13 +0400
commit182587fce100df0c9543e8be9493e9f539a3fbae (patch)
treeb7c0d36cca6460b208903b6db7c132b20c50ce5b /source/blender/python/generic/mathutils_euler.h
parent0028aa24c1f4195fbe01a7ba1db5c7841b6c4b49 (diff)
[#22045] Memory leak in Mathutils.Matrix
own fault when adding mathutils callbacks, generic destructor didnt free the matrix accessor array, made the array apart of the matrix struct since its not worth malloc'ing to save at most 16bytes.
Diffstat (limited to 'source/blender/python/generic/mathutils_euler.h')
-rw-r--r--source/blender/python/generic/mathutils_euler.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/source/blender/python/generic/mathutils_euler.h b/source/blender/python/generic/mathutils_euler.h
index 994a5f1780e..1f63ddecd81 100644
--- a/source/blender/python/generic/mathutils_euler.h
+++ b/source/blender/python/generic/mathutils_euler.h
@@ -37,14 +37,7 @@ extern PyTypeObject euler_Type;
#define EulerObject_Check(_v) PyObject_TypeCheck((_v), &euler_Type)
typedef struct {
- PyObject_VAR_HEAD
- float *eul; /*1D array of data */
- PyObject *cb_user; /* if this vector references another object, otherwise NULL, *Note* this owns its reference */
- unsigned char cb_type; /* which user funcs do we adhere to, RNA, GameObject, etc */
- unsigned char cb_subtype; /* subtype: location, rotation... to avoid defining many new functions for every attribute of the same type */
- unsigned char wrapped; /* wrapped data type? */
- /* end BaseMathObject */
-
+ BASE_MATH_MEMBERS(eul);
unsigned char order; /* rotation order */
} EulerObject;