summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/generic/glyphs/freetype_glyphcache.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/generic/glyphs/freetype_glyphcache.cxx b/vcl/unx/generic/glyphs/freetype_glyphcache.cxx
index 691b3f004f12..4e3a834e95c7 100644
--- a/vcl/unx/generic/glyphs/freetype_glyphcache.cxx
+++ b/vcl/unx/generic/glyphs/freetype_glyphcache.cxx
@@ -304,8 +304,8 @@ const unsigned char* FreetypeFontInfo::GetTable( const char* pTag, sal_uLong* pL
void FreetypeFontInfo::AnnounceFont( PhysicalFontCollection* pFontCollection )
{
- FreetypeFontFace* pFD = new FreetypeFontFace( this, maDevFontAttributes );
- pFontCollection->Add( pFD );
+ rtl::Reference<FreetypeFontFace> pFD(new FreetypeFontFace( this, maDevFontAttributes ));
+ pFontCollection->Add( pFD.get() );
}
void GlyphCache::InitFreetype()