X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/88684daa70085522a07302c4cb1ab8346a8102ea..74a3342702bf3a76a845f65f4510fd8612d3d802:/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 )