Fix leak of uri

2008-01-22  Alexander Larsson  <alexl@redhat.com>

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


svn path=/trunk/; revision=6354
This commit is contained in:
Alexander Larsson 2008-01-22 13:24:48 +00:00 committed by Alexander Larsson
parent 2544ae3cd6
commit 10cd55875a
2 changed files with 7 additions and 0 deletions

View 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:

View 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);