forked from AuroraMiddleware/gtk
treemodelrefcount: check_iter(): check if iter is valid
This commit is contained in:
parent
07d99d26b2
commit
1158ed5795
@ -222,6 +222,9 @@ check_iter (GtkTreeModelRefCount *ref_model,
|
||||
{
|
||||
NodeInfo *info;
|
||||
|
||||
if (may_assert)
|
||||
g_assert (gtk_tree_store_iter_is_valid (GTK_TREE_STORE (ref_model), iter));
|
||||
|
||||
info = g_hash_table_lookup (ref_model->priv->node_hash, iter->user_data);
|
||||
if (!info)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user