X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/937013e0fd914d4c42f9f5ec98da665986b93dfa..43b282bd095529e69f0bf7e7bd44888e4867257e:/src/gtk/fontpicker.cpp 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;