diff options
author | Xan Lopez <xan@gnome.org> | 2010-10-11 00:16:52 +0900 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-10-11 02:33:09 +0200 |
commit | 3f3d33ee6c4d3a30df1895c7da53804a3039a524 (patch) | |
tree | e95f09f497e9f6ca4f4ce3f90b67ac0aedf4729a /gdk/gdkcairo.c | |
parent | ee58c6c37d31ee8fc4c233751024b3992d42bd5f (diff) | |
download | gtk+-3f3d33ee6c4d3a30df1895c7da53804a3039a524.tar.gz |
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>
Diffstat (limited to 'gdk/gdkcairo.c')
-rw-r--r-- | gdk/gdkcairo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk/gdkcairo.c b/gdk/gdkcairo.c index 4e7c8ffcb1..563725ccff 100644 --- a/gdk/gdkcairo.c +++ b/gdk/gdkcairo.c @@ -380,6 +380,7 @@ _gdk_cairo_surface_extents (cairo_surface_t *surface, cr = cairo_create (surface); cairo_clip_extents (cr, &x1, &y1, &x2, &y2); + cairo_destroy (cr); x1 = floor (x1); y1 = floor (y1); |