diff options
author | Milan Crha <mcrha@redhat.com> | 2011-02-15 02:15:36 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:41:35 +0800 |
commit | a4e2599f950cd2379a18a4c39cd27f87f090d492 (patch) | |
tree | fb1e71901c4824a0666f40d02c58a3ec72c9033c /mail/e-mail-reader.c | |
parent | ecbb0bce4a854e7b617566f43a0b97f85bc63217 (diff) | |
download | gsoc2013-evolution-a4e2599f950cd2379a18a4c39cd27f87f090d492.tar.gz gsoc2013-evolution-a4e2599f950cd2379a18a4c39cd27f87f090d492.tar.zst gsoc2013-evolution-a4e2599f950cd2379a18a4c39cd27f87f090d492.zip |
Fix few memory leaks
Diffstat (limited to 'mail/e-mail-reader.c')
-rw-r--r-- | mail/e-mail-reader.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c index d7942d0985..a56b514227 100644 --- a/mail/e-mail-reader.c +++ b/mail/e-mail-reader.c @@ -2582,7 +2582,7 @@ mail_reader_message_loaded_cb (CamelFolder *folder, { EMailReader *reader; EMailReaderPrivate *priv; - CamelMimeMessage *message; + CamelMimeMessage *message = NULL; EMFormatHTML *formatter; GtkWidget *message_list; EMailBackend *backend; @@ -2703,6 +2703,9 @@ exit: priv->restoring_message_selection = FALSE; mail_reader_closure_free (closure); + + if (message) + g_object_unref (message); } static gboolean |