free the right array.

2008-09-25  Michael Natterer  <mitch@gimp.org>

	* plug-ins/print/print-draw-page.c
	(print_cairo_surface_from_drawable): free the right array.


svn path=/trunk/; revision=27057
This commit is contained in:
Michael Natterer 2008-09-25 15:09:28 +00:00 committed by Michael Natterer
parent dae9f75a17
commit a16f672caa
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-09-25 Michael Natterer <mitch@gimp.org>
* plug-ins/print/print-draw-page.c
(print_cairo_surface_from_drawable): free the right array.
2008-09-25 Sven Neumann <sven@gimp.org>
* plug-ins/file-jpeg/jpeg.[ch]

View File

@ -188,6 +188,7 @@ print_cairo_surface_from_drawable (gint32 drawable_ID)
colors = gimp_image_get_colormap (gimp_drawable_get_image (drawable_ID),
&num_colors);
memcpy (cmap, colors, 3 * num_colors);
g_free (colors);
}
surface = cairo_image_surface_create (gimp_drawable_has_alpha (drawable_ID) ?
@ -247,8 +248,6 @@ print_cairo_surface_from_drawable (gint32 drawable_ID)
gimp_progress_update ((gdouble) done / (width * height));
}
g_free (cmap);
gimp_drawable_detach (drawable);
return surface;