X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/357b1b5292715d8982e52603caeb5bca9553b525..54f11060867c4c97ebbe7954353f5c311262fc4b:/src/gtk/statbox.cpp 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);