applying patch 1622389, fixing two memory leaks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1836,6 +1836,9 @@ void wxMacCoreGraphicsContext::GetTextExtent( const wxString &str, wxDouble *wid
|
|||||||
*width = FixedToInt(textAfter - textBefore);
|
*width = FixedToInt(textAfter - textBefore);
|
||||||
|
|
||||||
::ATSUDisposeTextLayout(atsuLayout);
|
::ATSUDisposeTextLayout(atsuLayout);
|
||||||
|
#if SIZEOF_WCHAR_T == 4
|
||||||
|
free( ubuf ) ;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxMacCoreGraphicsContext::GetPartialTextExtents(const wxString& text, wxArrayDouble& widths) const
|
void wxMacCoreGraphicsContext::GetPartialTextExtents(const wxString& text, wxArrayDouble& widths) const
|
||||||
@@ -1894,6 +1897,9 @@ void wxMacCoreGraphicsContext::GetPartialTextExtents(const wxString& text, wxArr
|
|||||||
}
|
}
|
||||||
|
|
||||||
::ATSUDisposeTextLayout(atsuLayout);
|
::ATSUDisposeTextLayout(atsuLayout);
|
||||||
|
#if SIZEOF_WCHAR_T == 4
|
||||||
|
free( ubuf ) ;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void * wxMacCoreGraphicsContext::GetNativeContext()
|
void * wxMacCoreGraphicsContext::GetNativeContext()
|
||||||
|
Reference in New Issue
Block a user