memory leaks in gtkfilesystemmodel.c and gtkfilefilter.c



these appear to be trivial enough not to warrant a bugzilla treatment. valgrind tells me there are more leaks in gtkfilesystemunix.c, but without symbols in the stack track, so i didn't track them down.

i updated to anonymous cvs about an hour before making these diffs.

Index: gtk/gtkfilefilter.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkfilefilter.c,v
retrieving revision 1.7
diff -u -r1.7 gtkfilefilter.c
--- gtk/gtkfilefilter.c	15 Nov 2003 20:35:54 -0000	1.7
+++ gtk/gtkfilefilter.c	21 Jan 2004 05:21:33 -0000
@@ -137,6 +137,9 @@

   g_slist_foreach (filter->rules, (GFunc)filter_rule_free, NULL);

+  if (filter->name)
+    g_free (filter->name);
+
   parent_class->finalize (object);
 }

Index: gtk/gtkfilesystemmodel.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkfilesystemmodel.c,v
retrieving revision 1.17
diff -u -r1.17 gtkfilesystemmodel.c
--- gtk/gtkfilesystemmodel.c	17 Jan 2004 04:34:49 -0000	1.17
+++ gtk/gtkfilesystemmodel.c	21 Jan 2004 05:21:37 -0000
@@ -253,6 +253,9 @@
   GtkFileSystemModel *model = GTK_FILE_SYSTEM_MODEL (object);
   FileModelNode *children, *next;

+  if (model->root_path)
+    g_free (model->root_path);
+
   if (model->root_folder)
     g_object_unref (model->root_folder);



--
muppet <scott at asofyet dot org>




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