X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e2ccb25092ea0b6e94968823cbfc7d9b97326de7..ad237a73a80bb9c475b95b8122c23a99a5f65122:/src/gtk/textctrl.cpp diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index 325dcbd5c6..71ba5a7020 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -687,6 +687,7 @@ bool wxTextCtrl::Create( wxWindow *parent, g_object_set (m_text, "has-frame", FALSE, NULL); } + g_object_ref(m_widget); m_parent->DoAddChild( this );