gegl r1842 - in trunk: . gegl/graph



Author: neo
Date: Wed Jan 16 11:48:20 2008
New Revision: 1842
URL: http://svn.gnome.org/viewvc/gegl?rev=1842&view=rev

Log:
2008-01-16  Sven Neumann  <sven gimp org>

	* gegl/graph/gegl-node.c (gegl_node_get_bounding_box): don't leak id.


Modified:
   trunk/ChangeLog
   trunk/gegl/graph/gegl-node.c

Modified: trunk/gegl/graph/gegl-node.c
==============================================================================
--- trunk/gegl/graph/gegl-node.c	(original)
+++ trunk/gegl/graph/gegl-node.c	Wed Jan 16 11:48:20 2008
@@ -1412,7 +1412,7 @@
   GeglVisitor  *prepare_visitor;
   GeglVisitor  *have_visitor;
   GeglVisitor  *finish_visitor;
-  guchar       *id = g_malloc (1);
+  guchar       *id;
   gint          i;
 
   GeglPad      *pad;
@@ -1428,6 +1428,8 @@
     return dummy;
   g_object_ref (root);
 
+  id = g_malloc (1);
+
   for (i = 0; i < 2; i++)
     {
       prepare_visitor = g_object_new (GEGL_TYPE_PREPARE_VISITOR, "id", id, NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]