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:

committed by
Michael Natterer

parent
dae9f75a17
commit
a16f672caa
@ -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;
|
||||
|
Reference in New Issue
Block a user