From 10cd55875a7c346c40b5f0547bb52f466e9065ac Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 22 Jan 2008 13:24:48 +0000 Subject: [PATCH] Fix leak of uri 2008-01-22 Alexander Larsson * glocalfileinfo.c (get_thumbnail_attributes): Fix leak of uri svn path=/trunk/; revision=6354 --- gio/ChangeLog | 5 +++++ gio/glocalfileinfo.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gio/ChangeLog b/gio/ChangeLog index 1a6537fbc..04ae8fb1a 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,3 +1,8 @@ +2008-01-22 Alexander Larsson + + * glocalfileinfo.c (get_thumbnail_attributes): + Fix leak of uri + 2008-01-22 Alexander Larsson * glocalfile.c: diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c index 2b3892166..3c9e6f8af 100644 --- a/gio/glocalfileinfo.c +++ b/gio/glocalfileinfo.c @@ -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);