fix memory leaks in vcl quartz

Change-Id: Ifb6a924759b8a3a7f459f2335144ca4dda434cb9
This commit is contained in:
Ptyl Dragon
2014-05-08 15:58:50 +03:00
committed by Tor Lillqvist
parent d6f5d4ee2c
commit 4b1ccdefe2
2 changed files with 2 additions and 0 deletions

View File

@@ -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;
}

View File

@@ -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;