[Commits] [SCM] claws branch, master, updated. 3.15.0-84-g2872997

ticho at claws-mail.org ticho at claws-mail.org
Mon Jul 10 17:56:41 CEST 2017


The branch, master has been updated
       via  2872997c50d06b0946440c93072c6a0c4bab4231 (commit)
      from  ec4142bcfbfebb43f437709eef02cfa325012612 (commit)

Summary of changes:
 src/compose.c       |    1 +
 src/prefs_account.c |    3 +++
 2 files changed, 4 insertions(+)


- Log -----------------------------------------------------------------
commit 2872997c50d06b0946440c93072c6a0c4bab4231
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Mon Jul 10 17:56:09 2017 +0200

    Fix two memory leaks around use of privacy_get_system_ids().

diff --git a/src/compose.c b/src/compose.c
index bd34f43..08e765b 100644
--- a/src/compose.c
+++ b/src/compose.c
@@ -1321,6 +1321,7 @@ static void compose_force_encryption(Compose *compose, PrefsAccount *account,
 		if (privacy_avail && g_slist_length(privacy_avail)) {
 			privacy = (gchar *)(privacy_avail->data);
 		}
+		g_slist_free_full(privacy_avail, g_free);
 	}
 	if (privacy != NULL) {
 		if (system) {
diff --git a/src/prefs_account.c b/src/prefs_account.c
index 513ba6b..9934321 100644
--- a/src/prefs_account.c
+++ b/src/prefs_account.c
@@ -962,7 +962,10 @@ static void update_privacy_system_menu() {
 				COMBOBOX_SENS, TRUE,
 				COMBOBOX_PRIVACY_PLUGIN_ID, id,
 				-1);
+		g_free(id);
 	}
+	g_slist_free(system_ids);
+
 }
 
 #define TABLE_YPAD 2

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list