Calling ipo.delCurve() with a curve that's not been displayed in the
Ipo curve editor caused a segfault.
This commit is contained in:
Ken Hughes
2005-10-03 21:05:41 +00:00
parent 7c199946ec
commit 33fcdf2ada

View File

@@ -954,7 +954,10 @@ static PyObject *Ipo_delCurve( BPy_Ipo * self, PyObject * args )
if( icu->bezt )
MEM_freeN( icu->bezt );
MEM_freeN( icu );
del_ipoCurve( icu );
allspace( REMAKEIPO, 0 );
EXPP_allqueue( REDRAWIPO, 0 );
Py_INCREF( Py_None );
return Py_None;
}