[cairo-commit] src/cairo-clip.c

Vladimir Vukicevic vladimir at kemper.freedesktop.org
Tue Sep 11 11:28:03 PDT 2007


 src/cairo-clip.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
diff-tree 7dd05b7f86da6a465bb979c2ba955655ddcf66ed (from 897350c6c5cba29b8bd7890a33ecc4d7fa9b7795)
Author: Vladimir Vukicevic <vladimir at pobox.com>
Date:   Tue Sep 11 11:27:35 2007 -0700

    [mlk] Free boxes in copy_rectangle_list on success
    
    Fix memory leak when copy_rectangle_list is used.

diff --git a/src/cairo-clip.c b/src/cairo-clip.c
index ffbcde2..c9ad85e 100644
--- a/src/cairo-clip.c
+++ b/src/cairo-clip.c
@@ -652,6 +652,8 @@ _cairo_clip_copy_rectangle_list (cairo_c
 		return (cairo_rectangle_list_t*) &_cairo_rectangles_not_representable;
 	    }
         }
+
+	_cairo_region_boxes_fini (&clip->region, boxes);
     } else {
         cairo_rectangle_int_t extents;
 


More information about the cairo-commit mailing list