fixed (?) crashes because of default GUI font being deleted

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9966 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2001-05-02 13:35:14 +00:00
parent f3cf386509
commit b1d1dc510d
2 changed files with 12 additions and 0 deletions

View File

@ -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;
}

View File

@ -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;
}