X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/937013e0fd914d4c42f9f5ec98da665986b93dfa..fd1ce7f0bb251c672776e95b3c88c991997922a3:/src/gtk/checkbox.cpp?ds=sidebyside diff --git a/src/gtk/checkbox.cpp b/src/gtk/checkbox.cpp index 1e4bcf5922..3e925d1160 100644 --- a/src/gtk/checkbox.cpp +++ b/src/gtk/checkbox.cpp @@ -144,6 +144,7 @@ bool wxCheckBox::Create(wxWindow *parent, m_widgetLabel = GTK_BIN(m_widgetCheckbox)->child; m_widget = m_widgetCheckbox; } + g_object_ref(m_widget); SetLabel( label ); g_signal_connect (m_widgetCheckbox, "toggled",