aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2008-07-01 01:23:09 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2008-07-01 01:23:09 +0800
commit64365f459225be147f00c1658a5fd86c3947bf5d (patch)
tree21ddd365846c0cb15b971f57ebc6e9e13cd4fc78 /composer
parent49f22ddf6e7839230954af3cbbc64f2da8a1ffe9 (diff)
downloadgsoc2013-evolution-64365f459225be147f00c1658a5fd86c3947bf5d.tar.gz
gsoc2013-evolution-64365f459225be147f00c1658a5fd86c3947bf5d.tar.zst
gsoc2013-evolution-64365f459225be147f00c1658a5fd86c3947bf5d.zip
Add a finalize() method to free priv->base_url, which was leaking.
2008-06-30 Matthew Barnes <mbarnes@redhat.com> * 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
Diffstat (limited to 'composer')
-rw-r--r--composer/ChangeLog5
-rw-r--r--composer/e-composer-post-header.c14
2 files changed, 19 insertions, 0 deletions
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 <mbarnes@redhat.com>
+
+ * 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 <mbarnes@redhat.com>
** 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
@@ -232,6 +232,19 @@ composer_post_header_dispose (GObject *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)
{
GObjectClass *object_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,