1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-03 13:03:50 +00:00

(gtk) fix new bug in the details dialog that only manifests itself when you scroll through lots of torrents at once

This commit is contained in:
Charles Kerr 2009-04-25 16:19:07 +00:00
parent 05db7dd246
commit 7f1fe69815

View file

@ -1417,7 +1417,8 @@ refreshWebseedList( struct DetailsImpl * di, tr_torrent ** torrents, int n )
else { else {
char * key; char * key;
gtk_tree_model_get( model, &iter, WEBSEED_COL_KEY, &key, -1 ); gtk_tree_model_get( model, &iter, WEBSEED_COL_KEY, &key, -1 );
g_hash_table_remove( hash, key ); if( key != NULL )
g_hash_table_remove( hash, key );
more = gtk_list_store_remove( store, &iter ); more = gtk_list_store_remove( store, &iter );
g_free( key ); g_free( key );
} }