X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/937013e0fd914d4c42f9f5ec98da665986b93dfa..8a31648287be0ef976f133de2786b137f1e98340:/src/gtk/fontpicker.cpp?ds=sidebyside diff --git a/src/gtk/fontpicker.cpp b/src/gtk/fontpicker.cpp index 00b1181bc9..7eef011a45 100644 --- a/src/gtk/fontpicker.cpp +++ b/src/gtk/fontpicker.cpp @@ -17,7 +17,7 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" -#if wxUSE_FONTPICKERCTRL +#if wxUSE_FONTPICKERCTRL #include "wx/fontpicker.h" @@ -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;