X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/88684daa70085522a07302c4cb1ab8346a8102ea..43b282bd095529e69f0bf7e7bd44888e4867257e:/src/gtk/stattext.cpp diff --git a/src/gtk/stattext.cpp b/src/gtk/stattext.cpp index e0d277d91b..e9366a1e38 100644 --- a/src/gtk/stattext.cpp +++ b/src/gtk/stattext.cpp @@ -52,6 +52,7 @@ bool wxStaticText::Create(wxWindow *parent, } m_widget = gtk_label_new(NULL); + g_object_ref(m_widget); GtkJustification justify; if ( style & wxALIGN_CENTER_HORIZONTAL )