Don't free a string that is managed by wxGtkString, that's the whole _point_ of wxGtkString.
While we're at it, lets use it some more. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -392,12 +392,11 @@ static gboolean gtk_listbox_searchequal_callback(GtkTreeModel* model,
|
||||
WXLISTBOX_DATACOLUMN_ARG(listbox),
|
||||
&entry, -1);
|
||||
wxCHECK_MSG(entry, 0, wxT("Could not get entry"));
|
||||
gchar* keycollatekey = g_utf8_collate_key(key, -1);
|
||||
wxGtkString keycollatekey(g_utf8_collate_key(key, -1));
|
||||
|
||||
int ret = strcasecmp(keycollatekey,
|
||||
gtk_tree_entry_get_collate_key(entry));
|
||||
|
||||
g_free(keycollatekey);
|
||||
g_object_unref (entry);
|
||||
|
||||
return ret != 0;
|
||||
|
Reference in New Issue
Block a user