[gimp/soc-2010-cage] app: free the tag_ref_counts hash table in dispose()



commit 867465a099e81a5e86596bda79e42579bd3cc5b3
Author: Michael Natterer <mitch gimp org>
Date:   Sat Jun 26 18:25:44 2010 +0200

    app: free the tag_ref_counts hash table in dispose()

 app/core/gimpfilteredcontainer.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/app/core/gimpfilteredcontainer.c b/app/core/gimpfilteredcontainer.c
index 5951479..32e6d29 100644
--- a/app/core/gimpfilteredcontainer.c
+++ b/app/core/gimpfilteredcontainer.c
@@ -178,6 +178,12 @@ gimp_filtered_container_dispose (GObject *object)
 {
   GimpFilteredContainer *filtered_container = GIMP_FILTERED_CONTAINER (object);
 
+  if (filtered_container->tag_ref_counts)
+    {
+      g_hash_table_unref (filtered_container->tag_ref_counts);
+      filtered_container->tag_ref_counts = NULL;
+    }
+
   if (filtered_container->src_container)
     {
       g_signal_handlers_disconnect_by_func (filtered_container->src_container,



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