glib r6354 - trunk/gio



Author: alexl
Date: Tue Jan 22 13:24:48 2008
New Revision: 6354
URL: http://svn.gnome.org/viewvc/glib?rev=6354&view=rev

Log:
2008-01-22  Alexander Larsson  <alexl redhat com>

	* glocalfileinfo.c (get_thumbnail_attributes):
	Fix leak of uri



Modified:
   trunk/gio/ChangeLog
   trunk/gio/glocalfileinfo.c

Modified: trunk/gio/glocalfileinfo.c
==============================================================================
--- trunk/gio/glocalfileinfo.c	(original)
+++ trunk/gio/glocalfileinfo.c	Tue Jan 22 13:24:48 2008
@@ -1240,6 +1240,8 @@
 
   checksum = g_checksum_new (G_CHECKSUM_MD5);
   g_checksum_update (checksum, (const guchar *) uri, strlen (uri));
+  
+  g_free (uri);
 
   basename = g_strconcat (g_checksum_get_string (checksum), ".png", NULL);
   g_checksum_free (checksum);



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