diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-16 10:50:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-16 11:32:44 +0100 |
commit | 6709d982a5558cab4d0b7e13d5c72a3b074704d6 (patch) | |
tree | 6d9e025f1f0be368240ce072ec67c9e6361f6ed2 /vcl | |
parent | d2397ab0ad61b6331d41880ba896e28fa8fcb98d (diff) |
lsan: mpFontCharMap double-add-ref, never released
Change-Id: Id511d6d0d975434b4754786204cc0fc91568168e
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/generic/glyphs/gcach_ftyp.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/generic/glyphs/gcach_ftyp.cxx b/vcl/generic/glyphs/gcach_ftyp.cxx index 7a058331c2b8..47adb0929535 100644 --- a/vcl/generic/glyphs/gcach_ftyp.cxx +++ b/vcl/generic/glyphs/gcach_ftyp.cxx @@ -1292,8 +1292,8 @@ const ImplFontCharMap* FtFontInfo::GetImplFontCharMap( void ) if( bOK ) mpFontCharMap = new ImplFontCharMap( aCmapResult ); else - mpFontCharMap = ImplFontCharMap::GetDefaultMap(); - mpFontCharMap->AddReference(); + mpFontCharMap = ImplFontCharMap::GetDefaultMap(); + // mpFontCharMap on either branch now has a refcount of 1 return mpFontCharMap; } |