[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-216-gd661790bc

wwp at claws-mail.org wwp at claws-mail.org
Sun Sep 26 17:09:02 CEST 2021


The branch, gtk3 has been updated
       via  d661790bce6aba5f46b37a2cf31819fbd6b859ea (commit)
      from  f49e40123be352e3c6b230faf99c02785c5969e7 (commit)

Summary of changes:
 src/textview.c | 4 ++++
 1 file changed, 4 insertions(+)


- Log -----------------------------------------------------------------
commit d661790bce6aba5f46b37a2cf31819fbd6b859ea
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 8c42c6dda..9c779bc1f 100644
--- a/src/textview.c
+++ b/src/textview.c
@@ -1130,6 +1130,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;
 			}
 		}
@@ -1160,12 +1161,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);
@@ -1176,6 +1179,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