mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
Fix memory leak. gdk_event_put would make a copy of next_event, and
1998-12-30 Miguel de Icaza <miguel@nuclecu.unam.mx> * gtk/gtkmain.c (gtk_main_do_event): Fix memory leak. gdk_event_put would make a copy of next_event, and next_event was not being freed.
This commit is contained in:
parent
c44d39c06e
commit
f2091ab7be
@ -1,3 +1,9 @@
|
||||
1998-12-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||
|
||||
* gtk/gtkmain.c (gtk_main_do_event): Fix memory leak.
|
||||
gdk_event_put would make a copy of next_event, and next_event was
|
||||
not being freed.
|
||||
|
||||
Wed Dec 30 18:39:21 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GTK+ 1.1.11
|
||||
@ -9,7 +15,7 @@ Wed Dec 30 18:39:21 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
gtk+.spec:
|
||||
docs/gtk-config.1:
|
||||
gtk/gtkfeatures.h.in: version=1.1.11
|
||||
|
||||
|
||||
1998-12-29 Owen Taylor <otaylor@srv-19-29.roc.ny.frontiernet.net>
|
||||
|
||||
* gdk/gdkim.c (gdk_wcstombs): Fixed off-by-one
|
||||
|
@ -1,3 +1,9 @@
|
||||
1998-12-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||
|
||||
* gtk/gtkmain.c (gtk_main_do_event): Fix memory leak.
|
||||
gdk_event_put would make a copy of next_event, and next_event was
|
||||
not being freed.
|
||||
|
||||
Wed Dec 30 18:39:21 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GTK+ 1.1.11
|
||||
@ -9,7 +15,7 @@ Wed Dec 30 18:39:21 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
gtk+.spec:
|
||||
docs/gtk-config.1:
|
||||
gtk/gtkfeatures.h.in: version=1.1.11
|
||||
|
||||
|
||||
1998-12-29 Owen Taylor <otaylor@srv-19-29.roc.ny.frontiernet.net>
|
||||
|
||||
* gdk/gdkim.c (gdk_wcstombs): Fixed off-by-one
|
||||
|
@ -1,3 +1,9 @@
|
||||
1998-12-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||
|
||||
* gtk/gtkmain.c (gtk_main_do_event): Fix memory leak.
|
||||
gdk_event_put would make a copy of next_event, and next_event was
|
||||
not being freed.
|
||||
|
||||
Wed Dec 30 18:39:21 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GTK+ 1.1.11
|
||||
@ -9,7 +15,7 @@ Wed Dec 30 18:39:21 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
gtk+.spec:
|
||||
docs/gtk-config.1:
|
||||
gtk/gtkfeatures.h.in: version=1.1.11
|
||||
|
||||
|
||||
1998-12-29 Owen Taylor <otaylor@srv-19-29.roc.ny.frontiernet.net>
|
||||
|
||||
* gdk/gdkim.c (gdk_wcstombs): Fixed off-by-one
|
||||
|
@ -1,3 +1,9 @@
|
||||
1998-12-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||
|
||||
* gtk/gtkmain.c (gtk_main_do_event): Fix memory leak.
|
||||
gdk_event_put would make a copy of next_event, and next_event was
|
||||
not being freed.
|
||||
|
||||
Wed Dec 30 18:39:21 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GTK+ 1.1.11
|
||||
@ -9,7 +15,7 @@ Wed Dec 30 18:39:21 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
gtk+.spec:
|
||||
docs/gtk-config.1:
|
||||
gtk/gtkfeatures.h.in: version=1.1.11
|
||||
|
||||
|
||||
1998-12-29 Owen Taylor <otaylor@srv-19-29.roc.ny.frontiernet.net>
|
||||
|
||||
* gdk/gdkim.c (gdk_wcstombs): Fixed off-by-one
|
||||
|
@ -1,3 +1,9 @@
|
||||
1998-12-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||
|
||||
* gtk/gtkmain.c (gtk_main_do_event): Fix memory leak.
|
||||
gdk_event_put would make a copy of next_event, and next_event was
|
||||
not being freed.
|
||||
|
||||
Wed Dec 30 18:39:21 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GTK+ 1.1.11
|
||||
@ -9,7 +15,7 @@ Wed Dec 30 18:39:21 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
gtk+.spec:
|
||||
docs/gtk-config.1:
|
||||
gtk/gtkfeatures.h.in: version=1.1.11
|
||||
|
||||
|
||||
1998-12-29 Owen Taylor <otaylor@srv-19-29.roc.ny.frontiernet.net>
|
||||
|
||||
* gdk/gdkim.c (gdk_wcstombs): Fixed off-by-one
|
||||
|
@ -1,3 +1,9 @@
|
||||
1998-12-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||
|
||||
* gtk/gtkmain.c (gtk_main_do_event): Fix memory leak.
|
||||
gdk_event_put would make a copy of next_event, and next_event was
|
||||
not being freed.
|
||||
|
||||
Wed Dec 30 18:39:21 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GTK+ 1.1.11
|
||||
@ -9,7 +15,7 @@ Wed Dec 30 18:39:21 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
gtk+.spec:
|
||||
docs/gtk-config.1:
|
||||
gtk/gtkfeatures.h.in: version=1.1.11
|
||||
|
||||
|
||||
1998-12-29 Owen Taylor <otaylor@srv-19-29.roc.ny.frontiernet.net>
|
||||
|
||||
* gdk/gdkim.c (gdk_wcstombs): Fixed off-by-one
|
||||
|
@ -1,3 +1,9 @@
|
||||
1998-12-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||
|
||||
* gtk/gtkmain.c (gtk_main_do_event): Fix memory leak.
|
||||
gdk_event_put would make a copy of next_event, and next_event was
|
||||
not being freed.
|
||||
|
||||
Wed Dec 30 18:39:21 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* Released GTK+ 1.1.11
|
||||
@ -9,7 +15,7 @@ Wed Dec 30 18:39:21 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
gtk+.spec:
|
||||
docs/gtk-config.1:
|
||||
gtk/gtkfeatures.h.in: version=1.1.11
|
||||
|
||||
|
||||
1998-12-29 Owen Taylor <otaylor@srv-19-29.roc.ny.frontiernet.net>
|
||||
|
||||
* gdk/gdkim.c (gdk_wcstombs): Fixed off-by-one
|
||||
|
@ -581,8 +581,11 @@ gtk_main_do_event (GdkEvent *event)
|
||||
|
||||
|
||||
if (next_event)
|
||||
gdk_event_put (next_event);
|
||||
next_event = NULL;
|
||||
{
|
||||
gdk_event_put (next_event);
|
||||
gdk_event_free (next_event);
|
||||
next_event = NULL;
|
||||
}
|
||||
|
||||
/* Find the widget which got the event. We store the widget
|
||||
* in the user_data field of GdkWindow's.
|
||||
|
Loading…
Reference in New Issue
Block a user