From: Paul Cornett Date: Mon, 27 Feb 2012 16:40:34 +0000 (+0000) Subject: avoid making copy of font description X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/622226dc73448ba5435bb402d2f60663cf70a23d?hp=2432e3956362ae0a21d448b8f9bf22fbeea96d4d avoid making copy of font description git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70713 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/control.cpp b/src/gtk/control.cpp index 5a06a3910f..626fbf167d 100644 --- a/src/gtk/control.cpp +++ b/src/gtk/control.cpp @@ -245,8 +245,9 @@ wxControl::GetDefaultAttributesFromGTKWidget(GtkWidget* widget, if ( style && style->font_desc ) { wxNativeFontInfo info; - info.description = pango_font_description_copy(style->font_desc); + info.description = style->font_desc; attr.font = wxFont(info); + info.description = NULL; } else {