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:
authorStephen Swaney <sswaney@centurytel.net>2004-10-11 21:05:14 +0400
committerStephen Swaney <sswaney@centurytel.net>2004-10-11 21:05:14 +0400
commitafbf2c25ce2be9d63065cbccc138f5771d7111d8 (patch)
tree199c3a3ac06fa5cb42fb37d50271e89bc34e4124 /source/blender/python/api2_2x/matrix.h
parentb024faabe5ac0704c074db3e6d14e72ad396bd8e (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.h4
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;