X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/937013e0fd914d4c42f9f5ec98da665986b93dfa..55410bb4f67febe1ca20654f078ea4fb9a6223ae:/src/gtk/fontpicker.cpp?ds=sidebyside diff --git a/src/gtk/fontpicker.cpp b/src/gtk/fontpicker.cpp index 00b1181bc9..b2cdb532e3 100644 --- a/src/gtk/fontpicker.cpp +++ b/src/gtk/fontpicker.cpp @@ -66,6 +66,7 @@ bool wxFontButton::Create( wxWindow *parent, wxWindowID id, } m_widget = gtk_font_button_new(); + g_object_ref(m_widget); // set initial font m_selectedFont = initial.IsOk() ? initial : *wxNORMAL_FONT;