From 75bda5072363c1aa18f2d21290b89544adf69873 Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Thu, 3 Sep 1998 02:48:52 +0000 Subject: [PATCH] plug another small GtkSIgnalQuery leak. Thu Sep 3 04:45:57 1998 Tim Janik * gtk/gtkaccelgroup.c (gtk_accel_group_add): plug another small GtkSIgnalQuery leak. --- ChangeLog | 5 +++++ ChangeLog.pre-2-0 | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-2 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ gtk/gtkaccelgroup.c | 4 +++- 8 files changed, 38 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d1777e1f61..91c54815ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Sep 3 04:45:57 1998 Tim Janik + + * gtk/gtkaccelgroup.c (gtk_accel_group_add): plug another small + GtkSIgnalQuery leak. + Thu Sep 3 04:22:20 1998 Tim Janik * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index d1777e1f61..91c54815ad 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +Thu Sep 3 04:45:57 1998 Tim Janik + + * gtk/gtkaccelgroup.c (gtk_accel_group_add): plug another small + GtkSIgnalQuery leak. + Thu Sep 3 04:22:20 1998 Tim Janik * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index d1777e1f61..91c54815ad 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +Thu Sep 3 04:45:57 1998 Tim Janik + + * gtk/gtkaccelgroup.c (gtk_accel_group_add): plug another small + GtkSIgnalQuery leak. + Thu Sep 3 04:22:20 1998 Tim Janik * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index d1777e1f61..91c54815ad 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +Thu Sep 3 04:45:57 1998 Tim Janik + + * gtk/gtkaccelgroup.c (gtk_accel_group_add): plug another small + GtkSIgnalQuery leak. + Thu Sep 3 04:22:20 1998 Tim Janik * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index d1777e1f61..91c54815ad 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +Thu Sep 3 04:45:57 1998 Tim Janik + + * gtk/gtkaccelgroup.c (gtk_accel_group_add): plug another small + GtkSIgnalQuery leak. + Thu Sep 3 04:22:20 1998 Tim Janik * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index d1777e1f61..91c54815ad 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +Thu Sep 3 04:45:57 1998 Tim Janik + + * gtk/gtkaccelgroup.c (gtk_accel_group_add): plug another small + GtkSIgnalQuery leak. + Thu Sep 3 04:22:20 1998 Tim Janik * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index d1777e1f61..91c54815ad 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +Thu Sep 3 04:45:57 1998 Tim Janik + + * gtk/gtkaccelgroup.c (gtk_accel_group_add): plug another small + GtkSIgnalQuery leak. + Thu Sep 3 04:22:20 1998 Tim Janik * gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): diff --git a/gtk/gtkaccelgroup.c b/gtk/gtkaccelgroup.c index 051ea10719..06d2cc37ff 100644 --- a/gtk/gtkaccelgroup.c +++ b/gtk/gtkaccelgroup.c @@ -376,9 +376,11 @@ gtk_accel_group_add (GtkAccelGroup *accel_group, "cannot be used as accelerator signal", accel_signal, gtk_type_name (GTK_OBJECT_TYPE (object))); + if (query) + g_free (query); + return; } - g_free (query); /* prematurely abort if the group/entry is already locked