[gtk+] gtkdnd: Plug a leak
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtkdnd: Plug a leak
- Date: Thu, 25 Jun 2015 13:10:59 +0000 (UTC)
commit 0606b525b47cf0901ebff70c8aebd57f8190e116
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Jun 25 14:58:00 2015 +0200
gtkdnd: Plug a leak
We create a cairo_t in order to find out the surface extents, but it
was being leaked, dragging the whole drag surface with it through
extra refs.
gtk/gtkdnd.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index 56fcc25..3f63d5b 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -3275,6 +3275,7 @@ _gtk_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]