diff options
author | Ole Loots <ole@monochrom.net> | 2012-04-24 20:51:52 +0000 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2012-04-24 20:51:52 +0000 |
commit | ea411f6c34a31a189ba215cd7274cd677aff86b9 (patch) | |
tree | 3674a2fbecd2c1572faf27034fcd86c73627ec48 /atari | |
parent | 68cd53ee66da9715493699b68cfbe3057f97545e (diff) | |
download | netsurf-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-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 );
}
|