Commit a16f672c authored by Michael Natterer's avatar Michael Natterer Committed by Michael Natterer

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
parent dae9f75a
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]
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment