fixed leak in image_post_process_color
authorVladimir Nadvornik <nadvornik@suse.cz>
Tue, 9 Jun 2009 19:08:52 +0000 (19:08 +0000)
committerVladimir Nadvornik <nadvornik@suse.cz>
Tue, 9 Jun 2009 19:08:52 +0000 (19:08 +0000)
patch by Omari Stephens

src/image.c

index 4c5edc7..9c559fb 100644 (file)
@@ -351,6 +351,13 @@ static gboolean image_post_process_color(ImageWindow *imd, gint start_row, gbool
                }
 
        image_update_util(imd);
+       
+       if (screen_profile)
+               {
+               g_free(screen_profile);
+               screen_profile = NULL;
+               }
+       
        return !!cm;
 }