From: Andrej Kacian Date: Wed, 12 Jul 2017 18:43:07 +0000 (+0200) Subject: Correction of previous commit 6fedb78e7. X-Git-Tag: 3.16.0~99 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=050689774a127bcb8646bbf9c4caf3216dcee803 Correction of previous commit 6fedb78e7. We do not want to prematurely close tmpfp handle if it points to outfp. --- diff --git a/src/procmime.c b/src/procmime.c index f62487c85..2559dce7f 100644 --- a/src/procmime.c +++ b/src/procmime.c @@ -460,7 +460,8 @@ gboolean procmime_decode_content(MimeInfo *mimeinfo) err = TRUE; } } - procmime_fclose(tmpfp); + if (tmpfp != outfp) + procmime_fclose(tmpfp); } else if (encoding == ENC_X_UUENCODE) { gchar outbuf[BUFFSIZE]; gint len;