vcl/generic/glyphs/gcach_ftyp.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 6709d982a5558cab4d0b7e13d5c72a3b074704d6
Author: Caolán McNamara <caol...@redhat.com>
Date:   Fri May 16 10:50:39 2014 +0100

    lsan: mpFontCharMap double-add-ref, never released
    
    Change-Id: Id511d6d0d975434b4754786204cc0fc91568168e

diff --git a/vcl/generic/glyphs/gcach_ftyp.cxx 
b/vcl/generic/glyphs/gcach_ftyp.cxx
index 7a05833..47adb09 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;
 }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to