Plug leak in gdkcairo.c

1,968 (1,236 direct, 732 indirect) bytes in 1 blocks are definitely lost in loss record 11,816 of 11,947
   at 0x4025BDC: malloc (vg_replace_malloc.c:195)
   by 0x6950676: _context_get (cairo.c:250)
   by 0x6950940: cairo_create (cairo.c:370)
   by 0x685CD1E: _gdk_cairo_surface_extents (gdkcairo.c:381)
   by 0x685CEDA: gdk_cairo_region_create_from_surface (gdkcairo.c:433)

Signed-off-by: Benjamin Otte <otte@redhat.com>
This commit is contained in:
Xan Lopez 2010-10-11 00:16:52 +09:00 committed by Benjamin Otte
parent ee58c6c37d
commit 3f3d33ee6c

View File

@ -380,6 +380,7 @@ _gdk_cairo_surface_extents (cairo_surface_t *surface,
cr = cairo_create (surface); cr = cairo_create (surface);
cairo_clip_extents (cr, &x1, &y1, &x2, &y2); cairo_clip_extents (cr, &x1, &y1, &x2, &y2);
cairo_destroy (cr);
x1 = floor (x1); x1 = floor (x1);
y1 = floor (y1); y1 = floor (y1);