]> Pileus Git - ~andy/gtk/commitdiff
Don't leak references to the drag context. (#144324, Alex Larsson)
authorMatthias Clasen <mclasen@redhat.com>
Thu, 8 Jul 2004 20:29:19 +0000 (20:29 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 8 Jul 2004 20:29:19 +0000 (20:29 +0000)
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)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/x11/gdkdnd-x11.c

index b2af759128db1cba46260c1ff0252b495a8df5b9..fea6cb42a518318a582ed2c7ed4e54f3b70c68da 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index b2af759128db1cba46260c1ff0252b495a8df5b9..fea6cb42a518318a582ed2c7ed4e54f3b70c68da 100644 (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
index b2af759128db1cba46260c1ff0252b495a8df5b9..fea6cb42a518318a582ed2c7ed4e54f3b70c68da 100644 (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
index b2af759128db1cba46260c1ff0252b495a8df5b9..fea6cb42a518318a582ed2c7ed4e54f3b70c68da 100644 (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
index 01c0aee26eead70c84c9f353c8a66af14734d64d..1d04e25ac3b9cdadb78ee9628baa2d31b3d50cff 100644 (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;
            }