aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,