Fix typo ( fontbitmap was never destroyed within dtor )

svn path=/trunk/netsurf/; revision=13889
This commit is contained in:
Ole Loots 2012-04-24 20:51:52 +00:00
parent 68cd53ee66
commit ea411f6c34
1 changed files with 4 additions and 3 deletions

View File

@ -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 );
}