[Commits] [SCM] claws branch, master, updated. 3.15.0-118-ga93dbd4

ticho at claws-mail.org ticho at claws-mail.org
Sun Jul 16 20:05:28 CEST 2017


The branch, master has been updated
       via  a93dbd4a83b53c01b8485d10634f40cc1642a9c1 (commit)
      from  85640349d5e18310ff33ffda513e65a06f5ad6d6 (commit)

Summary of changes:
 src/addr_compl.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit a93dbd4a83b53c01b8485d10634f40cc1642a9c1
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Sun Jul 16 20:04:57 2017 +0200

    Avoid one strdup in address_completion_complete_address_in_entry().

diff --git a/src/addr_compl.c b/src/addr_compl.c
index 8b4296e..9cf536a 100644
--- a/src/addr_compl.c
+++ b/src/addr_compl.c
@@ -1430,9 +1430,10 @@ static gboolean address_completion_complete_address_in_entry(GtkEntry *entry,
 	else 
 #endif
 	if( ncount == 0 ) {
-		addrcompl_add_queue( g_strdup( searchTerm ) );
+		addrcompl_add_queue( searchTerm );
+	} else {
+		g_free( searchTerm );
 	}
-	g_free( searchTerm );
 
 	return TRUE;
 }

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list