From 594a1d3fce14da9a6009637c26a4e7a3587c46c7 Mon Sep 17 00:00:00 2001 From: Claudio Saavedra Date: Fri, 7 May 2010 20:08:36 +0300 Subject: Fix a critical warning Need to remove a row reference from the hash table when it's no longer in the model. --- hildon/hildon-live-search.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hildon/hildon-live-search.c b/hildon/hildon-live-search.c index fd5feb6..2382999 100644 --- a/hildon/hildon-live-search.c +++ b/hildon/hildon-live-search.c @@ -212,7 +212,13 @@ row_reference_is_not_selected (GtkTreeRowReference *row_ref, GtkTreeSelection *selection = gtk_tree_view_get_selection ( GTK_TREE_VIEW (priv->kb_focus_widget)); GtkTreePath *base_path = gtk_tree_row_reference_get_path (row_ref); - GtkTreePath *filter_path = gtk_tree_model_filter_convert_child_path_to_path + GtkTreePath *filter_path; + + if (base_path == NULL) { + return TRUE; + } + + filter_path = gtk_tree_model_filter_convert_child_path_to_path (priv->filter, base_path); GtkTreePath *view_path; gboolean ret; -- cgit v1.2.3-18-g5258