aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-26 17:13:12 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-03-26 17:13:12 +0300
commitbd1213bba483c40213c7b24c7ded1cbf0c8cd5b1 (patch)
tree8e9ec39acf3e2a3df3eec23c4a16a5a8cce5b6f8 /src
parentf944fabe353afc4eb868629b988ceb5e64ea743b (diff)
downloadrspamd-bd1213bba483c40213c7b24c7ded1cbf0c8cd5b1.tar.gz
rspamd-bd1213bba483c40213c7b24c7ded1cbf0c8cd5b1.zip
* Unref wrapper as well
Diffstat (limited to 'src')
-rw-r--r--src/message.c2
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 ();