gimp r27057 - in trunk: . plug-ins/print
- From: mitch svn gnome org
- To: svn-commits-list gnome org
- Subject: gimp r27057 - in trunk: . plug-ins/print
- Date: Thu, 25 Sep 2008 15:09:28 +0000 (UTC)
Author: mitch
Date: Thu Sep 25 15:09:28 2008
New Revision: 27057
URL: http://svn.gnome.org/viewvc/gimp?rev=27057&view=rev
Log:
2008-09-25 Michael Natterer <mitch gimp org>
* plug-ins/print/print-draw-page.c
(print_cairo_surface_from_drawable): free the right array.
Modified:
trunk/ChangeLog
trunk/plug-ins/print/print-draw-page.c
Modified: trunk/plug-ins/print/print-draw-page.c
==============================================================================
--- trunk/plug-ins/print/print-draw-page.c (original)
+++ trunk/plug-ins/print/print-draw-page.c Thu Sep 25 15:09:28 2008
@@ -188,6 +188,7 @@
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 @@
gimp_progress_update ((gdouble) done / (width * height));
}
- g_free (cmap);
-
gimp_drawable_detach (drawable);
return surface;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]