From 64365f459225be147f00c1658a5fd86c3947bf5d Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 30 Jun 2008 17:23:09 +0000 Subject: Add a finalize() method to free priv->base_url, which was leaking. 2008-06-30 Matthew Barnes * composer/e-composer-post-header.c (composer_post_header_finalize): Add a finalize() method to free priv->base_url, which was leaking. svn path=/trunk/; revision=35706 --- composer/ChangeLog | 5 +++++ composer/e-composer-post-header.c | 14 ++++++++++++++ 2 files changed, 19 insertions(+) (limited to 'composer') diff --git a/composer/ChangeLog b/composer/ChangeLog index 63599de222..d990d1bf70 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,8 @@ +2008-06-30 Matthew Barnes + + * e-composer-post-header.c (composer_post_header_finalize): + Add a finalize() method to free priv->base_url, which was leaking. + 2008-06-21 Matthew Barnes ** Fixes bug #310988 diff --git a/composer/e-composer-post-header.c b/composer/e-composer-post-header.c index 84525cd7cb..4eb54dfb55 100644 --- a/composer/e-composer-post-header.c +++ b/composer/e-composer-post-header.c @@ -231,6 +231,19 @@ composer_post_header_dispose (GObject *object) G_OBJECT_CLASS (parent_class)->dispose (object); } +static void +composer_post_header_finalize (GObject *object) +{ + EComposerPostHeaderPrivate *priv; + + priv = E_COMPOSER_POST_HEADER_GET_PRIVATE (object); + + g_free (priv->base_url); + + /* Chain up to parent's finalize() method. */ + G_OBJECT_CLASS (parent_class)->finalize (object); +} + static void composer_post_header_class_init (EComposerPostHeaderClass *class) { @@ -244,6 +257,7 @@ composer_post_header_class_init (EComposerPostHeaderClass *class) object_class->set_property = composer_post_header_set_property; object_class->get_property = composer_post_header_get_property; object_class->dispose = composer_post_header_dispose; + object_class->finalize = composer_post_header_finalize; g_object_class_install_property ( object_class, -- cgit