[gimp] app: chain up unconditionally gimp_container_entry_clear_items()



commit 35b3b2bfcf5b79ab873c16d4a38db77624ae520d
Author: Michael Natterer <mitch gimp org>
Date:   Fri Jun 6 22:40:29 2014 +0200

    app: chain up unconditionally gimp_container_entry_clear_items()
    
    so the parent implementation can clear the item hash table.

 app/widgets/gimpcontainerentry.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/app/widgets/gimpcontainerentry.c b/app/widgets/gimpcontainerentry.c
index 0aef087..f538c0c 100644
--- a/app/widgets/gimpcontainerentry.c
+++ b/app/widgets/gimpcontainerentry.c
@@ -314,11 +314,9 @@ gimp_container_entry_clear_items (GimpContainerView *view)
 {
   GtkTreeModel *model = gimp_container_entry_get_model (view);
 
-  /* happens in dispose() */
-  if (! model)
-    return;
-
-  gimp_container_tree_store_clear_items (GIMP_CONTAINER_TREE_STORE (model));
+  /* model is NULL in dispose() */
+  if (model)
+    gimp_container_tree_store_clear_items (GIMP_CONTAINER_TREE_STORE (model));
 
   parent_view_iface->clear_items (view);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]