]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/font.cpp
added test for writing empty value to the config
[wxWidgets.git] / src / gtk / font.cpp
index 1da01a2ed06703f39d210b8fafc7a90524da35fc..c8a4c8da16b251022b6d1cb634d7683328fea849 100644 (file)
@@ -493,6 +493,12 @@ GdkFont *GtkGetDefaultGuiFont()
         }
         gtk_widget_destroy( widget );
     }
         }
         gtk_widget_destroy( widget );
     }
+    else
+    {
+        // already have it, but ref it once more before returning
+        gdk_font_ref(g_systemDefaultGuiFont);
+    }
+
     return g_systemDefaultGuiFont;
 }
 
     return g_systemDefaultGuiFont;
 }