diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-06-28 07:20:47 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-06-28 07:20:47 +0800 |
commit | 33dd5a32b5c97b6bb5d0bd8039bd52bae4eb7b67 (patch) | |
tree | f09223889121ba4cbf742e968f0d61a47c2c5769 /src/ephy-navigation-action.c | |
parent | 4ddb9e1f94a1c75804bf699f5cee9cbe0d45ecab (diff) | |
download | gsoc2013-epiphany-33dd5a32b5c97b6bb5d0bd8039bd52bae4eb7b67.tar gsoc2013-epiphany-33dd5a32b5c97b6bb5d0bd8039bd52bae4eb7b67.tar.gz gsoc2013-epiphany-33dd5a32b5c97b6bb5d0bd8039bd52bae4eb7b67.tar.bz2 gsoc2013-epiphany-33dd5a32b5c97b6bb5d0bd8039bd52bae4eb7b67.tar.lz gsoc2013-epiphany-33dd5a32b5c97b6bb5d0bd8039bd52bae4eb7b67.tar.xz gsoc2013-epiphany-33dd5a32b5c97b6bb5d0bd8039bd52bae4eb7b67.tar.zst gsoc2013-epiphany-33dd5a32b5c97b6bb5d0bd8039bd52bae4eb7b67.zip |
Fix mem leaks.
2003-06-28 Christian Persch <chpe@cvs.gnome.org>
* 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.
Diffstat (limited to 'src/ephy-navigation-action.c')
-rw-r--r-- | src/ephy-navigation-action.c | 13 |
1 files changed, 13 insertions, 0 deletions
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; |