mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
Check the return value of gtk_tree_model_get_iter
Noticed in passing, didn't really see it crash there, but better safe than sorry.
This commit is contained in:
parent
0c3da06a62
commit
405b54c72e
@ -2912,9 +2912,12 @@ row_is_separator (GtkTreeView *tree_view,
|
||||
GtkTreeIter tmpiter;
|
||||
|
||||
if (iter)
|
||||
tmpiter = *iter;
|
||||
tmpiter = *iter;
|
||||
else
|
||||
gtk_tree_model_get_iter (tree_view->priv->model, &tmpiter, path);
|
||||
{
|
||||
if (!gtk_tree_model_get_iter (tree_view->priv->model, &tmpiter, path))
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
is_separator = tree_view->priv->row_separator_func (tree_view->priv->model,
|
||||
&tmpiter,
|
||||
|
Loading…
Reference in New Issue
Block a user