diff options
author | Stephen Swaney <sswaney@centurytel.net> | 2004-10-11 21:05:14 +0400 |
---|---|---|
committer | Stephen Swaney <sswaney@centurytel.net> | 2004-10-11 21:05:14 +0400 |
commit | afbf2c25ce2be9d63065cbccc138f5771d7111d8 (patch) | |
tree | 199c3a3ac06fa5cb42fb37d50271e89bc34e4124 /source/blender/python/api2_2x/matrix.h | |
parent | b024faabe5ac0704c074db3e6d14e72ad396bd8e (diff) |
fix memory leak in Object.GetSelected().
bugfix: #1631 Memory Leak in newMatrixObject
PyMem_Malloc()s not followed with PyMem_Free().
allocation error checking contributed by Tom Musgrove.
Diffstat (limited to 'source/blender/python/api2_2x/matrix.h')
-rw-r--r-- | source/blender/python/api2_2x/matrix.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/matrix.h b/source/blender/python/api2_2x/matrix.h index fdd31af5b2a..b40ec978159 100644 --- a/source/blender/python/api2_2x/matrix.h +++ b/source/blender/python/api2_2x/matrix.h @@ -49,7 +49,9 @@ typedef float **ptRow; typedef struct _Matrix { - PyObject_VAR_HEAD ptRow matrix; + PyObject_VAR_HEAD /* standard python macro */ + ptRow matrix; + float *contigPtr; int rowSize; int colSize; int flag; |