evolution r35706 - trunk/composer
- From: mbarnes svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r35706 - trunk/composer
- Date: Mon, 30 Jun 2008 17:23:09 +0000 (UTC)
Author: mbarnes
Date: Mon Jun 30 17:23:09 2008
New Revision: 35706
URL: http://svn.gnome.org/viewvc/evolution?rev=35706&view=rev
Log:
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.
Modified:
trunk/composer/ChangeLog
trunk/composer/e-composer-post-header.c
Modified: trunk/composer/e-composer-post-header.c
==============================================================================
--- trunk/composer/e-composer-post-header.c (original)
+++ trunk/composer/e-composer-post-header.c Mon Jun 30 17:23:09 2008
@@ -232,6 +232,19 @@
}
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 @@
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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]