aboutsummaryrefslogtreecommitdiffstats
path: root/src/message.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-09-01 19:28:19 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-09-01 19:28:19 +0400
commit5086821ae43d0283ed8b839c847ca267c3c81d2c (patch)
treead708262e7f6351c1d329d6014cf00eb5274a9bb /src/message.c
parent5a225ccd5135cb52644a33563ca826b01c2deadb (diff)
downloadrspamd-5086821ae43d0283ed8b839c847ca267c3c81d2c.tar.gz
rspamd-5086821ae43d0283ed8b839c847ca267c3c81d2c.zip
* Fix getting data wrapper for gmime24
Diffstat (limited to 'src/message.c')
-rw-r--r--src/message.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/message.c b/src/message.c
index 7a2e80e78..39910ba7d 100644
--- a/src/message.c
+++ b/src/message.c
@@ -718,7 +718,9 @@ mime_foreach_callback (GMimeObject * part, gpointer user_data)
else {
msg_warn ("write to stream failed: %d, %s", errno, strerror (errno));
}
+#ifndef GMIME24
g_object_unref (wrapper);
+#endif
}
else {
msg_warn ("cannot get wrapper for mime part, type of part: %s/%s", type->type, type->subtype);