summaryrefslogtreecommitdiff
path: root/atari
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2012-04-24 20:51:52 +0000
committerOle Loots <ole@monochrom.net>2012-04-24 20:51:52 +0000
commitea411f6c34a31a189ba215cd7274cd677aff86b9 (patch)
tree3674a2fbecd2c1572faf27034fcd86c73627ec48 /atari
parent68cd53ee66da9715493699b68cfbe3057f97545e (diff)
downloadnetsurf-ea411f6c34a31a189ba215cd7274cd677aff86b9.tar.gz
netsurf-ea411f6c34a31a189ba215cd7274cd677aff86b9.tar.bz2
Fix typo ( fontbitmap was never destroyed within dtor )
svn path=/trunk/netsurf/; revision=13889
Diffstat (limited to 'atari')
-rwxr-xr-xatari/plot/font_freetype.c7
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 );
}