X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/937013e0fd914d4c42f9f5ec98da665986b93dfa..ef6ece2352e739f843d9fc08d96d46b6467b83d6:/src/gtk/checkbox.cpp?ds=inline 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",