inspector: avoid a warning on destroy

We are only hiding the window now, so a memory management
error has crept into the destroy path.
This commit is contained in:
Matthias Clasen 2014-05-22 18:31:11 -04:00
parent e012dfab2c
commit 372e551a66

View File

@ -311,7 +311,8 @@ cleanup_object (GtkInspectorPropList *pl)
pl->priv->notify_handler_id = 0;
g_hash_table_remove_all (pl->priv->prop_iters);
gtk_list_store_clear (pl->priv->model);
if (pl->priv->model)
gtk_list_store_clear (pl->priv->model);
}
gboolean