[patch]: gnome-core/applets/deskguide_applet



Hi there...

This fixes a very minor memory leak in the deskguide applet.

=)
Peter
Index: deskguide_applet.c
===================================================================
RCS file: /cvs/gnome/gnome-core/applets/desk-guide/deskguide_applet.c,v
retrieving revision 1.19
diff -u -r1.19 deskguide_applet.c
--- deskguide_applet.c	2000/02/06 05:35:57	1.19
+++ deskguide_applet.c	2000/02/12 07:23:39
@@ -337,7 +337,10 @@
       gchar *path = g_strconcat (section, "/", item->path, NULL);
       
       if (!item->path)					/* page */
+      {
+	g_free(path);
 	continue;
+      }
       else if (item->min == -2 && item->max == -2)	/* section */
 	section = item->path;
       else if (item->min == -1 && item->max == -1)	/* boolean */


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