From 179aec8eac14dd0dfba319b22e3c3a63138e3b5f Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Tue, 24 May 2005 04:26:34 +0000 Subject: Fixed a potential memory leak. 2005-05-24 Srinivasa Ragavan * e-msg-composer-attachment.c (finalise): Fixed a potential memory leak. svn path=/trunk/; revision=29403 --- composer/ChangeLog | 7 ++++++- composer/e-msg-composer-attachment.c | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'composer') diff --git a/composer/ChangeLog b/composer/ChangeLog index e31e66e2ad..304cd2fe39 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,4 +1,9 @@ -2005-05-23 Srininvasa Ragavan +2005-05-24 Srinivasa Ragavan + + * e-msg-composer-attachment.c (finalise): Fixed a potential memory + leak. + +2005-05-23 Srinivasa Ragavan * e-msg-composer-attachment-bar.c, e-msg-composer-attachment-bar.h, e-msg-composer-attachment.c, e-msg-composer-attachment.h, e-msg-composer.c, diff --git a/composer/e-msg-composer-attachment.c b/composer/e-msg-composer-attachment.c index 1c88e7a68f..a279422b93 100644 --- a/composer/e-msg-composer-attachment.c +++ b/composer/e-msg-composer-attachment.c @@ -78,8 +78,6 @@ finalise(GObject *object) camel_object_unref (attachment->body); if (attachment->pixbuf_cache != NULL) g_object_unref (attachment->pixbuf_cache); - - G_OBJECT_CLASS (parent_class)->finalize (object); } else { if (attachment->handle) gnome_vfs_async_cancel(attachment->handle); @@ -88,6 +86,8 @@ finalise(GObject *object) if (attachment->description) g_free (attachment->description); } + + G_OBJECT_CLASS (parent_class)->finalize (object); } -- cgit