changeset 1638:511c979c2e7c

fixed leak in image_post_process_color patch by Omari Stephens
author nadvornik
date Tue, 09 Jun 2009 19:08:52 +0000
parents cc3ccf3c7c27
children 36a04d4bed60
files src/image.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/image.c	Mon Jun 08 19:05:49 2009 +0000
+++ b/src/image.c	Tue Jun 09 19:08:52 2009 +0000
@@ -351,6 +351,13 @@
 		}
 
 	image_update_util(imd);
+	
+	if (screen_profile)
+		{
+		g_free(screen_profile);
+		screen_profile = NULL;
+		}
+	
 	return !!cm;
 }