[gtk+] treemodelfilter: bgo#658696- Crash when inserting new node
- From: Kristian Rietveld <kristian src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] treemodelfilter: bgo#658696- Crash when inserting new node
- Date: Sun, 11 Sep 2011 10:17:23 +0000 (UTC)
commit 35eb92138a370f29b57bd223ca012c34d3a6473c
Author: SÃbastien Granjoux <seb sfo free fr>
Date: Sat Sep 10 10:32:16 2011 +0200
treemodelfilter: bgo#658696- Crash when inserting new node
gtk/gtktreemodelfilter.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktreemodelfilter.c b/gtk/gtktreemodelfilter.c
index d88702c..b401a0d 100644
--- a/gtk/gtktreemodelfilter.c
+++ b/gtk/gtktreemodelfilter.c
@@ -2279,7 +2279,8 @@ gtk_tree_model_filter_row_inserted (GtkTreeModel *c_model,
}
done:
- gtk_tree_model_filter_check_ancestors (filter, real_path);
+ if (real_path)
+ gtk_tree_model_filter_check_ancestors (filter, real_path);
if (emit_row_inserted)
gtk_tree_model_filter_emit_row_inserted_for_path (filter, c_model,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]