gegl r1924 - in trunk: . gegl/process
- From: neo svn gnome org
- To: svn-commits-list gnome org
- Subject: gegl r1924 - in trunk: . gegl/process
- Date: Mon, 28 Jan 2008 12:13:46 +0000 (GMT)
Author: neo
Date: Mon Jan 28 12:13:46 2008
New Revision: 1924
URL: http://svn.gnome.org/viewvc/gegl?rev=1924&view=rev
Log:
2008-01-28 Sven Neumann <sven gimp org>
* gegl/process/gegl-processor.c (gegl_processor_render): plugged a
memory leak.
Modified:
trunk/ChangeLog
trunk/gegl/process/gegl-processor.c
Modified: trunk/gegl/process/gegl-processor.c
==============================================================================
--- trunk/gegl/process/gegl-processor.c (original)
+++ trunk/gegl/process/gegl-processor.c Mon Jan 28 12:13:46 2008
@@ -591,6 +591,7 @@
gegl_region_subtract (region, valid_region);
gegl_region_get_rectangles (region, &rectangles, &n_rectangles);
+ gegl_region_destroy (region);
for (i = 0; i < n_rectangles && i < 1; i++)
{
@@ -607,7 +608,8 @@
if (n_rectangles != 0)
{
if (progress)
- *progress = 1.0 - ((double) area_left (valid_region, rectangle) / rect_area (rectangle));
+ *progress = 1.0 - ((double) area_left (valid_region, rectangle) /
+ rect_area (rectangle));
return TRUE;
}
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]