summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@nuclecu.unam.mx>1998-12-31 04:43:36 +0000
committerArturo Espinosa <unammx@src.gnome.org>1998-12-31 04:43:36 +0000
commitf2091ab7bed519f1e54c0fef7cebda21b64cfd89 (patch)
tree5c5b89442dde3d7718559322028253991e6d044e
parentc44d39c06e3733524d02ccafabbf4a54208ba7e1 (diff)
downloadgdk-pixbuf-f2091ab7bed519f1e54c0fef7cebda21b64cfd89.tar.gz
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.
-rw-r--r--ChangeLog8
-rw-r--r--ChangeLog.pre-2-08
-rw-r--r--ChangeLog.pre-2-108
-rw-r--r--ChangeLog.pre-2-28
-rw-r--r--ChangeLog.pre-2-48
-rw-r--r--ChangeLog.pre-2-68
-rw-r--r--ChangeLog.pre-2-88
-rw-r--r--gtk/gtkmain.c7
8 files changed, 54 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index 884a8ff4b..1e38d762a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0
index 884a8ff4b..1e38d762a 100644
--- a/ChangeLog.pre-2-0
+++ b/ChangeLog.pre-2-0
@@ -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
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 884a8ff4b..1e38d762a 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -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
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index 884a8ff4b..1e38d762a 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -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
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index 884a8ff4b..1e38d762a 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -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
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 884a8ff4b..1e38d762a 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -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
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 884a8ff4b..1e38d762a 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -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
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 442961445..468e18364 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -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.