(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:
Jordan Lee 2011-04-29 20:22:11 +00:00
parent 53fede89f6
commit c1273a03a4
1 changed files with 1 additions and 1 deletions

View File

@ -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 )