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