X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f9671150978a0bbb5d5b52f1442e3e3e3d023871..dd107c50be43e8d4dbdba20df162faf119a3781c:/src/gtk1/font.cpp?ds=sidebyside diff --git a/src/gtk1/font.cpp b/src/gtk1/font.cpp index 1da01a2ed0..c8a4c8da16 100644 --- a/src/gtk1/font.cpp +++ b/src/gtk1/font.cpp @@ -493,6 +493,12 @@ GdkFont *GtkGetDefaultGuiFont() } gtk_widget_destroy( widget ); } + else + { + // already have it, but ref it once more before returning + gdk_font_ref(g_systemDefaultGuiFont); + } + return g_systemDefaultGuiFont; }