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 f73683e..8b4296e 100644 (file)
@@ -1129,7 +1129,7 @@ static void addrcompl_clear_queue( void ) {
        /* 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_ );