clean up some warnings in bpy code

This commit is contained in:
Stephen Swaney
2006-01-16 17:55:03 +00:00
parent c5819fe03f
commit 14cc1192a3
5 changed files with 15 additions and 14 deletions

View File

@@ -1706,8 +1706,9 @@ static PyObject *reimportText( PyObject *module )
/* if previously compiled, free the object */
/* (can't see how could be NULL, but check just in case) */
if( text->compiled )
if( text->compiled ){
Py_DECREF( (PyObject *)text->compiled );
}
/* compile the buffer */
buf = txt_to_buf( text );