Fix missing mutex accessing _displayQueue_
authorColin Leroy <colin@colino.net>
Thu, 5 Jun 2014 14:50:51 +0000 (16:50 +0200)
committerColin Leroy <colin@colino.net>
Thu, 5 Jun 2014 14:50:51 +0000 (16:50 +0200)
src/addr_compl.c

index 104ce66..1d7d65d 100644 (file)
@@ -1651,10 +1651,9 @@ void addrcompl_teardown( void ) {
        /* g_print( "addrcompl_teardown...\n" ); */
        addrcompl_free_window( _compWindow_ );
        _compWindow_ = NULL;
-       if( _displayQueue_ ) {
-               g_list_free( _displayQueue_ );
-       }
-       _displayQueue_ = NULL;
+
+       addrcompl_clear_queue();
+
        _completionIdleID_ = 0;
        /* g_print( "addrcompl_teardown...done\n" ); */
 }