Commit 94b1780f authored by Juan Pablo Ugarte's avatar Juan Pablo Ugarte

added extra check in project_remove_widget_cb() iter could be NULL!

* gladeui/glade-inspector.c: added extra check in project_remove_widget_cb()
  iter could be NULL!

svn path=/trunk/; revision=1371
parent 552ea457
2007-06-20 Juan Pablo Ugarte <juanpablougarte@gmail.com>
* gladeui/glade-inspector.c: added extra check in project_remove_widget_cb()
iter could be NULL!
2006-06-20 Vincent Geddes <vincent.geddes@gmail.com>
* gladeui/glade-inspector.[ch]: New Inspector implementation.
......
......@@ -367,10 +367,11 @@ project_remove_widget_cb (GladeProject *project,
iter = glade_util_find_iter_by_widget (GTK_TREE_MODEL (inspector->priv->model),
widget,
WIDGET_COLUMN);
gtk_tree_store_remove (inspector->priv->model, iter);
gtk_tree_iter_free (iter);
if (iter)
{
gtk_tree_store_remove (inspector->priv->model, iter);
gtk_tree_iter_free (iter);
}
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment