gdkevents leak bug
- From: Jeff Garzik <jgarzik pobox com>
- To: gtk-devel-list redhat com
- Subject: gdkevents leak bug
- Date: Thu, 31 Dec 1998 12:43:00 -0500
Here's one that tml on IRC spotted. It looks like the two _tail
pointers weren't being updated correctly during an append-to-list
operation.
Jeff
Index: gdkevents.c
===================================================================
RCS file: /debian/home/gnomecvs/gtk+/gdk/gdkevents.c,v
retrieving revision 1.11
diff -u -r1.11 gdkevents.c
--- gdkevents.c 1998/12/24 19:38:53 1.11
+++ gdkevents.c 1998/12/31 17:34:22
@@ -486,12 +486,11 @@
tmp_list->data = new_event;
if (!putback_events)
- {
- putback_events = tmp_list;
- putback_tail = tmp_list;
- }
+ putback_events = tmp_list;
else
putback_tail->next = tmp_list;
+
+ putback_tail = tmp_list;
}
/*
@@ -1883,12 +1882,11 @@
tmp_list->data = event;
if (!queued_events)
- {
- queued_events = tmp_list;
- queued_tail = queued_events;
- }
+ queued_events = tmp_list;
else
queued_tail->next = tmp_list;
+
+ queued_tail = queued_events;
}
else
gdk_event_free (event);
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]