X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e4e1487169a6403cb8bb86576c1612f46c19e34f..b85b06e13d22e7fc1604ec1a49caa1227a1b3d36:/src/gtk/choice.cpp diff --git a/src/gtk/choice.cpp b/src/gtk/choice.cpp index 97129ba2f1..fa6221e50a 100644 --- a/src/gtk/choice.cpp +++ b/src/gtk/choice.cpp @@ -42,7 +42,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControlWithItems) void wxChoice::Init() { - m_strings = (wxSortedArrayString *)NULL; + m_strings = NULL; m_stringCellIndex = 0; } @@ -79,6 +79,7 @@ bool wxChoice::Create( wxWindow *parent, wxWindowID id, } m_widget = gtk_combo_box_new_text(); + g_object_ref(m_widget); Append(n, choices);