aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-migrate.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-11-19 05:41:57 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-11-19 05:41:57 +0800
commitfd58a674e245d5290954bdd6ccd212ee2bd60dbe (patch)
treee129a38d3d93889e4607e0a0023b88b166760b9e /mail/em-migrate.c
parent78b5e27b077c54b962069b4171aa972961b1183e (diff)
downloadgsoc2013-evolution-fd58a674e245d5290954bdd6ccd212ee2bd60dbe.tar.gz
gsoc2013-evolution-fd58a674e245d5290954bdd6ccd212ee2bd60dbe.tar.zst
gsoc2013-evolution-fd58a674e245d5290954bdd6ccd212ee2bd60dbe.zip
Don't leak the message objects.
2003-11-18 Jeffrey Stedfast <fejj@ximian.com> * em-migrate.c (em_migrate_dir): Don't leak the message objects. svn path=/trunk/; revision=23428
Diffstat (limited to 'mail/em-migrate.c')
-rw-r--r--mail/em-migrate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mail/em-migrate.c b/mail/em-migrate.c
index 3dbfb760d2..c0e7bc4705 100644
--- a/mail/em-migrate.c
+++ b/mail/em-migrate.c
@@ -379,6 +379,8 @@ em_migrate_dir (EMMigrateSession *session, const char *dirname, const char *full
camel_folder_append_message (new_folder, message, info, NULL, &ex);
camel_folder_free_message_info (old_folder, info);
+ camel_object_unref (message);
+
if (camel_exception_is_set (&ex))
break;