diff options
-rwxr-xr-x | atari/plot/font_freetype.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/atari/plot/font_freetype.c b/atari/plot/font_freetype.c index 037d6bc3d..355809346 100755 --- a/atari/plot/font_freetype.c +++ b/atari/plot/font_freetype.c @@ -577,9 +577,10 @@ int ctor_font_plotter_freetype( FONT_PLOTTER self ) static int dtor( FONT_PLOTTER self )
{
ft_font_finalise();
- if( fontbmp == NULL )
- bitmap_destroy( fontbmp ); -
+ if( fontbmp != NULL ) {
+ bitmap_destroy( fontbmp );
+ fontbmp = NULL; + }
if( tmp.fd_addr != NULL ){
free( tmp.fd_addr );
}
|