- fix what appeared to be obvious bug, "if (fclose) fclose(file)" ->

"if (file) fclose(file)", Text3d.c owner should check.
This commit is contained in:
Daniel Dunbar 2005-07-09 17:54:03 +00:00
parent a4f907d2e0
commit 23980dd6b0

@ -954,7 +954,7 @@ PyObject *M_Text3d_LoadFont( PyObject * self, PyObject * args )
if( file || !strcmp (fontfile, "<builtin>") ) {
load_vfont( fontfile );
if(fclose) fclose( file );
if(file) fclose( file );
if( (vf=exist_vfont( fontfile )) )
return Font_CreatePyObject( vf );
return EXPP_incr_ret( Py_None );