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:
authorToni Alatalo <antont@kyperjokki.fi>2005-09-14 17:59:43 +0400
committerToni Alatalo <antont@kyperjokki.fi>2005-09-14 17:59:43 +0400
commit2cb24cefb2652870a457104d4f3ce6802ef9e16c (patch)
tree721ed19a73cf967bed53293dcb178d72f36092cd /source/blender/python/api2_2x/BezTriple.c
parent4d79ac3193098b018ccb6cd7361686992a4c4bb8 (diff)
=bpy beztriple: finally got the mem. management right with the help of khughes.
Diffstat (limited to 'source/blender/python/api2_2x/BezTriple.c')
-rw-r--r--source/blender/python/api2_2x/BezTriple.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/BezTriple.c b/source/blender/python/api2_2x/BezTriple.c
index 3cdce19ab9c..13280c9e8c5 100644
--- a/source/blender/python/api2_2x/BezTriple.c
+++ b/source/blender/python/api2_2x/BezTriple.c
@@ -404,6 +404,7 @@ PyObject *BezTriple_CreatePyObject( BezTriple * bzt )
"couldn't create BPy_BezTriple object" );
pybeztriple->beztriple = bzt;
+ pybeztriple->own_memory = 0;
return ( PyObject * ) pybeztriple;
}
@@ -496,9 +497,7 @@ PyObject *newBezTriple( PyObject *args)
pybez->beztriple = MEM_callocN( sizeof( BezTriple ), "new bpytriple");
/* check malloc */
- pybez->own_memory = 0; /* we own it. must free later */
- /* set to 0 for creating to work. how should freeing be done? */
-
+ pybez->own_memory = 1; /* we own it. must free later */
switch( length ) {
case 9: {