Fix leak of uri
authorAlexander Larsson <alexl@redhat.com>
Tue, 22 Jan 2008 13:24:48 +0000 (13:24 +0000)
committerAlexander Larsson <alexl@src.gnome.org>
Tue, 22 Jan 2008 13:24:48 +0000 (13:24 +0000)
2008-01-22  Alexander Larsson  <alexl@redhat.com>

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

svn path=/trunk/; revision=6354

gio/ChangeLog
gio/glocalfileinfo.c

index 1a6537fbcf2a702bbd8b2c92192168b27770f86e..04ae8fb1af7e2a545692e17e5a930ca7612dca4a 100644 (file)
@@ -1,3 +1,8 @@
+2008-01-22  Alexander Larsson  <alexl@redhat.com>
+
+       * glocalfileinfo.c (get_thumbnail_attributes):
+       Fix leak of uri
+
 2008-01-22  Alexander Larsson  <alexl@redhat.com>
 
         * glocalfile.c:
index 2b38921668d45637423d5bb7d6da5bdf1a83eece..3c9e6f8af7de7a268d801a3d51cdeb86d7a56b86 100644 (file)
@@ -1240,6 +1240,8 @@ get_thumbnail_attributes (const char *path,
 
   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);