]> git.saurik.com Git - wxWidgets.git/commitdiff
avoid making copy of font description
authorPaul Cornett <paulcor@bullseye.com>
Mon, 27 Feb 2012 16:40:34 +0000 (16:40 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Mon, 27 Feb 2012 16:40:34 +0000 (16:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70713 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/control.cpp

index 5a06a3910f43dfd0af92e470d8ffe58df00eb0ea..626fbf167d05124c88b0fd1f2b1fe0e34ff0c864 100644 (file)
@@ -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
     {