forked from bartvdbraak/blender
=bpy beztriple: finally got the mem. management right with the help of khughes.
This commit is contained in:
parent
4d79ac3193
commit
2cb24cefb2
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user