Don't leak references to the drag context. (#144324, Alex Larsson)

2004-07-08  Matthias Clasen  <mclasen@redhat.com>

	* gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Don't leak
	references to the drag context.  (#144324, Alex Larsson)
This commit is contained in:
Matthias Clasen
2004-07-08 20:29:19 +00:00
committed by Matthias Clasen
parent 03239b803d
commit 9ab68256d1
5 changed files with 24 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-07-08 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Don't leak
references to the drag context. (#144324, Alex Larsson)
Thu Jul 8 00:31:34 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_set_model): Stop editing

View File

@ -1,3 +1,8 @@
2004-07-08 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Don't leak
references to the drag context. (#144324, Alex Larsson)
Thu Jul 8 00:31:34 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_set_model): Stop editing

View File

@ -1,3 +1,8 @@
2004-07-08 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Don't leak
references to the drag context. (#144324, Alex Larsson)
Thu Jul 8 00:31:34 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_set_model): Stop editing

View File

@ -1,3 +1,8 @@
2004-07-08 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Don't leak
references to the drag context. (#144324, Alex Larsson)
Thu Jul 8 00:31:34 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktreeview.c (gtk_tree_view_set_model): Stop editing

View File

@ -2193,7 +2193,10 @@ xdnd_send_xevent (GdkDragContext *context,
temp_event.any.window = window;
if ((*xdnd_filters[i].func) (event_send, &temp_event, NULL) == GDK_FILTER_TRANSLATE)
gdk_event_put (&temp_event);
{
gdk_event_put (&temp_event);
g_object_unref (tmp_event.dnd.context);
}
return TRUE;
}