mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-31 00:12:19 +01:00 
			
		
		
		
	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:
		
				
					committed by
					
						 Alexander Larsson
						Alexander Larsson
					
				
			
			
				
	
			
			
			
						parent
						
							2544ae3cd6
						
					
				
				
					commit
					10cd55875a
				
			| @@ -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: | ||||
|   | ||||
| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user