fix mem leak in gtk_drag_set_icon_surface, destroy pattern

https://bugzilla.gnome.org/show_bug.cgi?id=681446
This commit is contained in:
ammonkey 2012-08-08 19:07:17 +02:00 committed by Matthias Clasen
parent c60bfa40ad
commit 4445dce697

View File

@ -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);
}