[gtk+] inspector: avoid a warning on destroy
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] inspector: avoid a warning on destroy
- Date: Thu, 22 May 2014 22:37:57 +0000 (UTC)
commit 372e551a6604b46e3da87731ae8bda1f44331848
Author: Matthias Clasen <mclasen redhat com>
Date: Thu May 22 18:31:11 2014 -0400
inspector: avoid a warning on destroy
We are only hiding the window now, so a memory management
error has crept into the destroy path.
gtk/inspector/prop-list.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/inspector/prop-list.c b/gtk/inspector/prop-list.c
index 3ad8bef..7eb0375 100644
--- a/gtk/inspector/prop-list.c
+++ b/gtk/inspector/prop-list.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]