[gtk+/wip/baedert/gtkimageview] Inspector: Plug a few leaks



commit e25dce823324f781ff3d6580e1f932fc9c7236c1
Author: Timm Bäder <mail baedert org>
Date:   Sun Jan 24 08:01:36 2016 +0100

    Inspector: Plug a few leaks

 gtk/inspector/css-node-tree.c |    2 +-
 gtk/inspector/visual.c        |    6 ++++++
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/gtk/inspector/css-node-tree.c b/gtk/inspector/css-node-tree.c
index f1682cd..88a6498 100644
--- a/gtk/inspector/css-node-tree.c
+++ b/gtk/inspector/css-node-tree.c
@@ -637,10 +637,10 @@ gtk_inspector_css_node_tree_set_node (GtkInspectorCssNodeTree *cnt,
             g_string_append (s, " ");
           g_string_append (s, strv[i]);
         }
-      g_strfreev (strv);
     }
 
   gtk_label_set_label (GTK_LABEL (cnt->priv->css_node_info), s->str);
+  g_strfreev (strv);
   g_string_free (s, TRUE);
 }
 
diff --git a/gtk/inspector/visual.c b/gtk/inspector/visual.c
index 9f26224..1f969cd 100644
--- a/gtk/inspector/visual.c
+++ b/gtk/inspector/visual.c
@@ -218,6 +218,8 @@ fill_gtk (const gchar *path,
 
       g_free (filename);
     }
+
+  g_dir_close (dir);
 }
 
 static gchar*
@@ -324,6 +326,8 @@ fill_icons (const gchar *path,
 
       g_free (filename);
     }
+
+  g_dir_close (dir);
 }
 
 static void
@@ -384,6 +388,8 @@ fill_cursors (const gchar *path,
 
       g_free (filename);
     }
+
+  g_dir_close (dir);
 }
 
 static void


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