diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-03-10 12:52:23 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-03-10 12:52:23 +0000 |
commit | 4bfd1a2bcd89a946ee53b0eae6246375dead6e4f (patch) | |
tree | da8c575f9f415ac0e521993d597d3a0889265953 /vcl/source/fontsubset | |
parent | 104eb57512d68998e2e7b9073290f74bd305434a (diff) |
fix leaks on bad ttf files
Diffstat (limited to 'vcl/source/fontsubset')
-rw-r--r-- | vcl/source/fontsubset/sft.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/vcl/source/fontsubset/sft.cxx b/vcl/source/fontsubset/sft.cxx index 1bf8d638d9d5..b9745147bb5a 100644 --- a/vcl/source/fontsubset/sft.cxx +++ b/vcl/source/fontsubset/sft.cxx @@ -1777,8 +1777,6 @@ static int doOpenTTFont( sal_uInt32 facenum, TrueTypeFont* t ) void CloseTTFont(TrueTypeFont *ttf) /*FOLD01*/ { - if (ttf->tag != TTFontClassTag) return; - #if !defined(WIN32) && !defined(OS2) if( ttf->fname ) munmap((char *) ttf->ptr, ttf->fsize); |