aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-01-25 21:55:37 +0800
committerChristian Persch <chpe@src.gnome.org>2004-01-25 21:55:37 +0800
commit3581016c967e67030e184d9dbc856c0ba07deda2 (patch)
tree390df4bd864b011907ea59cb90b3a4f274722636
parent06f850bde5bcb9cd58dc0a7e2548a9eeb30a9d4c (diff)
downloadgsoc2013-epiphany-3581016c967e67030e184d9dbc856c0ba07deda2.tar
gsoc2013-epiphany-3581016c967e67030e184d9dbc856c0ba07deda2.tar.gz
gsoc2013-epiphany-3581016c967e67030e184d9dbc856c0ba07deda2.tar.bz2
gsoc2013-epiphany-3581016c967e67030e184d9dbc856c0ba07deda2.tar.lz
gsoc2013-epiphany-3581016c967e67030e184d9dbc856c0ba07deda2.tar.xz
gsoc2013-epiphany-3581016c967e67030e184d9dbc856c0ba07deda2.tar.zst
gsoc2013-epiphany-3581016c967e67030e184d9dbc856c0ba07deda2.zip
Fix mem leak.
2004-01-25 Christian Persch <chpe@cvs.gnome.org> * src/ephy-tabs-menu.c: (tab_set_action_accelerator): Fix mem leak.
-rw-r--r--ChangeLog6
-rw-r--r--src/ephy-tabs-menu.c4
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8a43df645..f8e40703e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2004-01-25 Christian Persch <chpe@cvs.gnome.org>
+ * src/ephy-tabs-menu.c: (tab_set_action_accelerator):
+
+ Fix mem leak.
+
+2004-01-25 Christian Persch <chpe@cvs.gnome.org>
+
* src/ephy-session.c: (ephy_session_save):
Fix mem leaks.
diff --git a/src/ephy-tabs-menu.c b/src/ephy-tabs-menu.c
index c8eb3b91b..ffa4a7058 100644
--- a/src/ephy-tabs-menu.c
+++ b/src/ephy-tabs-menu.c
@@ -235,7 +235,7 @@ tab_set_action_accelerator (GtkActionGroup *action_group,
guint tab_number)
{
const char *action_name, *action_group_name;
- char *accel_path = NULL;
+ char *accel_path;
char accel[7];
gint accel_number;
guint accel_key;
@@ -269,6 +269,8 @@ tab_set_action_accelerator (GtkActionGroup *action_group,
{
gtk_accel_map_change_entry (accel_path, 0, 0, TRUE);
}
+
+ g_free (accel_path);
}
void