[
1231710 ] wxGrid slow refresh on motif caused by memory leak
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34809
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
f->m_fontStruct = (WXFontStructPtr)font;
f->m_display = ( display ? display : wxGetDisplay() );
f->m_scale = intScale;
f->m_fontStruct = (WXFontStructPtr)font;
f->m_display = ( display ? display : wxGetDisplay() );
f->m_scale = intScale;
+
+ M_FONTDATA->m_fonts.Append(f);
+
#if !wxUSE_RENDER_TABLE
f->m_fontList = XmFontListCreate ((XFontStruct*) font, XmSTRING_DEFAULT_CHARSET);
#if !wxUSE_RENDER_TABLE
f->m_fontList = XmFontListCreate ((XFontStruct*) font, XmSTRING_DEFAULT_CHARSET);
- M_FONTDATA->m_fonts.Append(f);
#else // if wxUSE_RENDER_TABLE
XmRendition rendition;
XmRenderTable renderTable;
#else // if wxUSE_RENDER_TABLE
XmRendition rendition;
XmRenderTable renderTable;