Fix an off-by-one error in serial range handling

trap->end_sequence is the first serial for which we don't
ignore errors anymore, so we know the trap is dead if
end_sequence <= processed_serial.

Bug 629608
This commit is contained in:
Matthias Clasen 2010-09-21 21:10:15 -04:00
parent 0f88b6808c
commit 59bc9e8860

View File

@ -2772,7 +2772,7 @@ delete_outdated_error_traps (GdkDisplayX11 *display_x11)
GdkErrorTrap *trap = tmp_list->data;
if (trap->end_sequence != 0 &&
SEQUENCE_COMPARE (trap->end_sequence, <, processed_sequence))
SEQUENCE_COMPARE (trap->end_sequence, <=, processed_sequence))
{
GSList *free_me = tmp_list;