fixing leak in the 'old' non-graphics code, thanks to Kevin

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@55129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2008-08-19 04:50:45 +00:00
parent 8c42541999
commit b43a0635a2

View File

@@ -1066,6 +1066,9 @@ void wxMacCGContext::GetTextExtent( const wxString &str, wxCoord *width, wxCoord
*width = FixedToInt(textAfter - textBefore) ;
::ATSUDisposeTextLayout(atsuLayout);
#if SIZEOF_WCHAR_T == 4
free( ubuf ) ;
#endif
}
void wxMacCGContext::GetPartialTextExtents(const wxString& text, wxArrayInt& widths) const
@@ -1123,6 +1126,9 @@ void wxMacCGContext::GetPartialTextExtents(const wxString& text, wxArrayInt& wid
}
::ATSUDisposeTextLayout(atsuLayout);
#if SIZEOF_WCHAR_T == 4
free( ubuf ) ;
#endif
}
void wxMacCGContext::SetFont( const wxFont &font )