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