[Commits] [SCM] claws branch, master, updated. 3.18.0-158-g96b3a87ee
wwp at claws-mail.org
wwp at claws-mail.org
Sun Sep 26 17:08:45 CEST 2021
The branch, master has been updated
via 96b3a87eea02da805c22c5632b867dabb3ed5240 (commit)
from d256de076b31e3213819a33a3612442939b10ba9 (commit)
Summary of changes:
src/textview.c | 4 ++++
1 file changed, 4 insertions(+)
- Log -----------------------------------------------------------------
commit 96b3a87eea02da805c22c5632b867dabb3ed5240
Author: wwp <subscript at free.fr>
Date: Sun Sep 26 17:08:28 2021 +0200
Fix CID 1491186 resource leaks.
diff --git a/src/textview.c b/src/textview.c
index 4508f1ad5..fd37efffd 100644
--- a/src/textview.c
+++ b/src/textview.c
@@ -1151,6 +1151,7 @@ static void textview_write_body(TextView *textview, MimeInfo *mimeinfo)
waitpid(pid, pfd, 0);
g_unlink(fname);
account_sigsep_matchlist_delete();
+ conv_code_converter_destroy(conv);
return;
}
}
@@ -1181,12 +1182,14 @@ textview_default:
if (!tmpfp) {
FILE_OP_ERROR(mimeinfo->data.filename, "claws_fopen");
account_sigsep_matchlist_delete();
+ conv_code_converter_destroy(conv);
return;
}
if (fseek(tmpfp, mimeinfo->offset, SEEK_SET) < 0) {
FILE_OP_ERROR(mimeinfo->data.filename, "fseek");
claws_fclose(tmpfp);
account_sigsep_matchlist_delete();
+ conv_code_converter_destroy(conv);
return;
}
debug_print("Viewing text content of type: %s (length: %d)\n", mimeinfo->subtype, mimeinfo->length);
@@ -1197,6 +1200,7 @@ textview_default:
if (textview->stop_loading) {
claws_fclose(tmpfp);
account_sigsep_matchlist_delete();
+ conv_code_converter_destroy(conv);
return;
}
wrote += ftell(tmpfp)-i;
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list