Fixed a memory leak in address completion.
authorAndrej Kacian <ticho@claws-mail.org>
Sun, 16 Jul 2017 17:38:12 +0000 (19:38 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Sun, 16 Jul 2017 17:38:12 +0000 (19:38 +0200)
src/addr_compl.c

index f73683e73c9e2e8ac64152f24160ac9c347e2993..8b4296e8de0e52b9b1faa8bd7d971d10901d4fd2 100644 (file)
@@ -1129,7 +1129,7 @@ static void addrcompl_clear_queue( void ) {
        /* Clear out display queue */
        pthread_mutex_lock( & _completionMutex_ );
 
        /* Clear out display queue */
        pthread_mutex_lock( & _completionMutex_ );
 
-       g_list_free( _displayQueue_ );
+       g_list_free_full( _displayQueue_, g_free );
        _displayQueue_ = NULL;
 
        pthread_mutex_unlock( & _completionMutex_ );
        _displayQueue_ = NULL;
 
        pthread_mutex_unlock( & _completionMutex_ );