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 1a6537f..04ae8fb 100644 (file)
@@ -1,5 +1,10 @@
 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:
         (canonicalize_filename):
        Canonicalize paths that start with more than
index 2b38921..3c9e6f8 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);