diff --git a/src/gtk/bmpcbox.cpp b/src/gtk/bmpcbox.cpp index b7a124cd3a..dbcc502ecd 100644 --- a/src/gtk/bmpcbox.cpp +++ b/src/gtk/bmpcbox.cpp @@ -127,6 +127,7 @@ void wxBitmapComboBox::GTKCreateComboBoxWidget() m_widget = gtk_combo_box_entry_new_with_model( GTK_TREE_MODEL(store), m_stringCellIndex ); #endif m_entry = GTK_ENTRY(gtk_bin_get_child(GTK_BIN(m_widget))); + g_object_add_weak_pointer(G_OBJECT(m_entry), (void**)&m_entry); gtk_editable_set_editable(GTK_EDITABLE(m_entry), true); } g_object_ref(m_widget);