diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-26 17:13:12 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-03-26 17:13:12 +0300 |
commit | bd1213bba483c40213c7b24c7ded1cbf0c8cd5b1 (patch) | |
tree | 8e9ec39acf3e2a3df3eec23c4a16a5a8cce5b6f8 /src | |
parent | f944fabe353afc4eb868629b988ceb5e64ea743b (diff) | |
download | rspamd-bd1213bba483c40213c7b24c7ded1cbf0c8cd5b1.tar.gz rspamd-bd1213bba483c40213c7b24c7ded1cbf0c8cd5b1.zip |
* Unref wrapper as well
Diffstat (limited to 'src')
-rw-r--r-- | src/message.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/message.c b/src/message.c index c2dea3ff4..c35659366 100644 --- a/src/message.c +++ b/src/message.c @@ -337,6 +337,7 @@ mime_foreach_callback (GMimeObject *part, gpointer user_data) else { msg_warn ("mime_foreach_callback: write to stream failed: %d, %s", errno, strerror (errno)); } + g_object_unref (wrapper); } else { msg_warn ("mime_foreach_callback: cannot get wrapper for mime part, type of part: %s/%s", type->type, type->subtype); @@ -478,6 +479,7 @@ mime_learn_foreach_callback (GMimeObject *part, gpointer user_data) mime_part->content = part_content; session->parts = g_list_prepend (session->parts, mime_part); } + g_object_unref (wrapper); } } else { g_assert_not_reached (); |