(trunk gtk) tweak to r12398: because most of the strings in category_filter_model_update() will be duplicates of each other, use g_string_chunk_insert_const() instead of g_string_insert().
This commit is contained in:
parent
53fede89f6
commit
c1273a03a4
|
@ -163,7 +163,7 @@ category_filter_model_update( GtkTreeStore * store )
|
|||
char * key;
|
||||
|
||||
gtr_get_host_from_url( buf, sizeof( buf ), inf->trackers[i].announce );
|
||||
key = g_string_chunk_insert( strings, buf );
|
||||
key = g_string_chunk_insert_const( strings, buf );
|
||||
|
||||
count = g_hash_table_lookup( hosts_hash, key );
|
||||
if( count == NULL )
|
||||
|
|
Loading…
Reference in New Issue