[gtk+] fix mem leak in gtk_drag_set_icon_surface, destroy pattern
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] fix mem leak in gtk_drag_set_icon_surface, destroy pattern
- Date: Sun, 14 Apr 2013 00:06:21 +0000 (UTC)
commit 4445dce697eb343bb7a7ca2ac20b2eeaade927fd
Author: ammonkey <am monkeyd gmail com>
Date: Wed Aug 8 19:07:17 2012 +0200
fix mem leak in gtk_drag_set_icon_surface, destroy pattern
https://bugzilla.gnome.org/show_bug.cgi?id=681446
gtk/gtkdnd.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index 83655f0..3cf0e5c 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -3439,6 +3439,7 @@ gtk_drag_set_icon_surface (GdkDragContext *context,
}
gdk_window_set_background_pattern (gtk_widget_get_window (window), pattern);
+ cairo_pattern_destroy (pattern);
gtk_drag_set_icon_window (context, window, extents.x, extents.y, TRUE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]