aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog18
-rw-r--r--lib/widgets/ephy-location-entry.c4
-rw-r--r--src/ephy-navigation-action.c13
-rw-r--r--src/ephy-spinner-action.c13
4 files changed, 43 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 9450887fa..61625cb54 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,20 @@
-2003-06-27 Marco Pesenti Gritti <marco@it.gnome.org>
+2003-06-28 Christian Persch <chpe@cvs.gnome.org>
- * src/window-commands.c: (window_cmd_file_open):
+ * src/ephy-navigation-action.c: (ephy_navigation_action_finalize),
+ (ephy_navigation_action_class_init):
+ * src/ephy-spinner-action.c: (ephy_spinner_action_finalize),
+ (ephy_spinner_action_class_init):
+ * lib/widgets/ephy-location-entry.c:
+ (ephy_location_entry_editable_changed_cb):
+
+ Fix mem leaks.
+
+2003-06-28 Christian Persch <chpe@cvs.gnome.org>
+
+ * src/ephy-favorites-menu.c: (ephy_favorites_menu_rebuild):
+ * embed/find-dialog.c: (find_get_info):
- Revert escape/unescape, according to teuf is not necessary ;)
+ Fix mem leaks.
2003-06-27 Marco Pesenti Gritti <marco@it.gnome.org>
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 9488c7c11..8e869e1a5 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2002 Ricardo Fernández Pascual
+ * Copyright (C) 2002 Ricardo Fernández Pascual
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -693,8 +693,8 @@ ephy_location_entry_editable_changed_cb (GtkEditable *editable, EphyLocationEntr
{
p->going_to_site = FALSE;
g_signal_emit (e, EphyLocationEntrySignals[ACTIVATED], 0, NULL, url);
- g_free (url);
}
+ g_free (url);
}
if (p->user_changed)
diff --git a/src/ephy-navigation-action.c b/src/ephy-navigation-action.c
index d2ea85839..61c2f3cdb 100644
--- a/src/ephy-navigation-action.c
+++ b/src/ephy-navigation-action.c
@@ -294,11 +294,24 @@ ephy_navigation_action_get_property (GObject *object,
}
static void
+ephy_navigation_action_finalize (GObject *object)
+{
+ EphyNavigationAction *action = EPHY_NAVIGATION_ACTION (object);
+
+ g_return_if_fail (action->priv != NULL);
+
+ g_free (action->priv);
+
+ G_OBJECT_CLASS (parent_class)->finalize (object);
+}
+
+static void
ephy_navigation_action_class_init (EphyNavigationActionClass *class)
{
EggActionClass *action_class;
GObjectClass *object_class = G_OBJECT_CLASS (class);
+ object_class->finalize = ephy_navigation_action_finalize;
object_class->set_property = ephy_navigation_action_set_property;
object_class->get_property = ephy_navigation_action_get_property;
diff --git a/src/ephy-spinner-action.c b/src/ephy-spinner-action.c
index 45e7bc6dc..b854e3e58 100644
--- a/src/ephy-spinner-action.c
+++ b/src/ephy-spinner-action.c
@@ -183,6 +183,18 @@ ephy_spinner_action_get_property (GObject *object,
}
static void
+ephy_spinner_action_finalize (GObject *object)
+{
+ EphySpinnerAction *action = EPHY_SPINNER_ACTION (object);
+
+ g_return_if_fail (action->priv != NULL);
+
+ g_free (action->priv);
+
+ G_OBJECT_CLASS (parent_class)->finalize (object);
+}
+
+static void
ephy_spinner_action_class_init (EphySpinnerActionClass *class)
{
EggActionClass *action_class;
@@ -195,6 +207,7 @@ ephy_spinner_action_class_init (EphySpinnerActionClass *class)
action_class->create_tool_item = create_tool_item;
action_class->connect_proxy = connect_proxy;
+ object_class->finalize = ephy_spinner_action_finalize;
object_class->set_property = ephy_spinner_action_set_property;
object_class->get_property = ephy_spinner_action_get_property;