commit a93dbd4a83b53c01b8485d10634f40cc1642a9c1 parent 85640349d5e18310ff33ffda513e65a06f5ad6d6 Author: Andrej Kacian <ticho@claws-mail.org> Date: Sun, 16 Jul 2017 20:04:57 +0200 Avoid one strdup in address_completion_complete_address_in_entry(). Diffstat:
| M | src/addr_compl.c | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git 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; }