Commit 57e8bdcb authored by 18:22:28  Tim Janik's avatar 18:22:28 Tim Janik Committed by Tim Janik

fix invalid list node accesses, spotted by Benjamin Berg, bug #475158.

2007-09-09 18:22:28  Tim Janik  <timj@gtk.org>

        * gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose): fix invalid
        list node accesses, spotted by Benjamin Berg, bug #475158.



svn path=/trunk/; revision=18769
parent cc7e7db6
2007-09-09 18:22:28 Tim Janik <timj@gtk.org>
* gdk/x11/gdkgeometry-x11.c (_gdk_window_process_expose): fix invalid
list node accesses, spotted by Benjamin Berg, bug #475158.
2007-09-09 Kristian Rietveld <kris@gtk.org>
Reverted r16699:
......
......@@ -1142,6 +1142,7 @@ _gdk_window_process_expose (GdkWindow *window,
while (tmp_list)
{
GdkWindowQueueItem *item = tmp_list->data;
GList *next = tmp_list->next;
if (item->serial - serial < 0x7FFFFFFF)
{
if (item->window == window)
......@@ -1173,7 +1174,7 @@ _gdk_window_process_expose (GdkWindow *window,
queue_delete_link (display_x11->translate_queue, tmp_list);
queue_item_free (item);
}
tmp_list = tmp_list->next;
tmp_list = next;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment