From 8c4c354377f75c2a074c978976f1a5acac7b6053 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Sun, 3 Jul 2005 22:34:31 +0000 Subject: [PATCH] Applied patch by Johan van Zyl [ 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 --- src/motif/font.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/motif/font.cpp b/src/motif/font.cpp index e96103c124..7a1247c2b7 100644 --- a/src/motif/font.cpp +++ b/src/motif/font.cpp @@ -556,9 +556,11 @@ wxXFont* wxFont::GetInternalFont(double scale, WXDisplay* display) const 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); - M_FONTDATA->m_fonts.Append(f); #else // if wxUSE_RENDER_TABLE XmRendition rendition; XmRenderTable renderTable; -- 2.50.0