vcl/quartz/ctfonts.cxx  |    1 +
 vcl/quartz/ctlayout.cxx |    1 +
 2 files changed, 2 insertions(+)

New commits:
commit 4b1ccdefe2594d8bec9343171c15ff1f90ac97bf
Author: Ptyl Dragon <p...@cloudon.com>
Date:   Thu May 8 15:58:50 2014 +0300

    fix memory leaks in vcl quartz
    
    Change-Id: Ifb6a924759b8a3a7f459f2335144ca4dda434cb9

diff --git a/vcl/quartz/ctfonts.cxx b/vcl/quartz/ctfonts.cxx
index 029caed..919ac5d 100644
--- a/vcl/quartz/ctfonts.cxx
+++ b/vcl/quartz/ctfonts.cxx
@@ -207,6 +207,7 @@ bool CoreTextStyle::GetGlyphOutline( sal_GlyphId aGlyphId, 
basegfx::B2DPolyPolyg
     const CGPathElement aClosingElement = { kCGPathElementCloseSubpath, NULL };
     MyCGPathApplierFunc( (void*)&aGgoData, &aClosingElement );
 #endif
+    CFRelease( xPath );
 
     return true;
 }
diff --git a/vcl/quartz/ctlayout.cxx b/vcl/quartz/ctlayout.cxx
index 9376402..5c61150 100644
--- a/vcl/quartz/ctlayout.cxx
+++ b/vcl/quartz/ctlayout.cxx
@@ -552,6 +552,7 @@ sal_Int32 CTLayout::GetTextBreak( long nMaxWidth, long 
/*nCharExtra*/, int nFact
     CTTypesetterRef aCTTypeSetter = CTTypesetterCreateWithAttributedString( 
mpAttrString );
     const double fCTMaxWidth = (double)nMaxWidth / nFactor;
     CFIndex nIndex = CTTypesetterSuggestClusterBreak( aCTTypeSetter, 0, 
fCTMaxWidth );
+    CFRelease( aCTTypeSetter );
 
     if( nIndex >= mnCharCount )
         return -1;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to