[gtk+] Plug leak in gdkcairo.c
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Plug leak in gdkcairo.c
- Date: Mon, 11 Oct 2010 01:09:16 +0000 (UTC)
commit 3f3d33ee6c4d3a30df1895c7da53804a3039a524
Author: Xan Lopez <xan gnome org>
Date: Mon Oct 11 00:16:52 2010 +0900
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>
gdk/gdkcairo.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkcairo.c b/gdk/gdkcairo.c
index 4e7c8ff..563725c 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]