1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-20 21:26:53 +00:00

(trunk gtk) fix another minor memory error in the new filter code

This commit is contained in:
Charles Kerr 2010-03-18 04:04:03 +00:00
parent 4f31e5d02a
commit fb03c00d1a

View file

@ -189,10 +189,9 @@ category_filter_model_update( GtkTreeStore * store )
int * count = g_hash_table_lookup( hosts_hash, key );
if( count == NULL )
{
char * k = g_strdup( key );
count = tr_new0( int, 1 );
g_hash_table_insert( hosts_hash, k, count );
g_ptr_array_add( hosts, k );
g_hash_table_insert( hosts_hash, g_strdup( key ), count );
g_ptr_array_add( hosts, g_strdup( key ) );
}
for( k=0; k<keyCount; ++k )