From: Stefan Csomor Date: Wed, 27 Dec 2006 15:49:26 +0000 (+0000) Subject: applying patch 1622389, fixing two memory leaks X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b9d495a007b846a1f6813ba3ca465c81c6e3047b applying patch 1622389, fixing two memory leaks git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/graphics.cpp b/src/mac/carbon/graphics.cpp index a36821fc53..0a22635202 100755 --- a/src/mac/carbon/graphics.cpp +++ b/src/mac/carbon/graphics.cpp @@ -1836,6 +1836,9 @@ void wxMacCoreGraphicsContext::GetTextExtent( const wxString &str, wxDouble *wid *width = FixedToInt(textAfter - textBefore); ::ATSUDisposeTextLayout(atsuLayout); +#if SIZEOF_WCHAR_T == 4 + free( ubuf ) ; +#endif } void wxMacCoreGraphicsContext::GetPartialTextExtents(const wxString& text, wxArrayDouble& widths) const @@ -1894,6 +1897,9 @@ void wxMacCoreGraphicsContext::GetPartialTextExtents(const wxString& text, wxArr } ::ATSUDisposeTextLayout(atsuLayout); +#if SIZEOF_WCHAR_T == 4 + free( ubuf ) ; +#endif } void * wxMacCoreGraphicsContext::GetNativeContext()