X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/357b1b5292715d8982e52603caeb5bca9553b525..86e9b8f28fc8db834628e1528e12f3eeb1f6e216:/src/gtk/statbox.cpp?ds=sidebyside diff --git a/src/gtk/statbox.cpp b/src/gtk/statbox.cpp index 7115010262..20326248c2 100644 --- a/src/gtk/statbox.cpp +++ b/src/gtk/statbox.cpp @@ -78,6 +78,7 @@ bool wxStaticBox::Create( wxWindow *parent, } m_widget = GTKCreateFrame(label); + g_object_ref(m_widget); // only base SetLabel needs to be called after GTKCreateFrame wxControl::SetLabel(label);