fixed memory leak in wxNativeFontInfo when using Pango
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -308,7 +308,8 @@ wxFont wxSystemSettingsNative::GetFont( wxSystemFont index )
|
||||
if ( def && def->font_desc )
|
||||
{
|
||||
wxNativeFontInfo info;
|
||||
info.description = def->font_desc;
|
||||
info.description =
|
||||
pango_font_description_copy(def->font_desc);
|
||||
gs_objects.m_fontSystem = wxFont(info);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user