aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer/ChangeLog7
-rw-r--r--composer/e-msg-composer-attachment.c4
2 files changed, 8 insertions, 3 deletions
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 <sragavan@novell.com>
+2005-05-24 Srinivasa Ragavan <sragavan@novell.com>
+
+ * e-msg-composer-attachment.c (finalise): Fixed a potential memory
+ leak.
+
+2005-05-23 Srinivasa Ragavan <sragavan@novell.com>
* 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);
}