mirror of
https://github.com/transmission/transmission
synced 2025-02-22 14:10:34 +00:00
(trunk gtk) fix another minor memory error in the new filter code
This commit is contained in:
parent
4f31e5d02a
commit
fb03c00d1a
1 changed files with 2 additions and 3 deletions
|
@ -189,10 +189,9 @@ category_filter_model_update( GtkTreeStore * store )
|
||||||
int * count = g_hash_table_lookup( hosts_hash, key );
|
int * count = g_hash_table_lookup( hosts_hash, key );
|
||||||
if( count == NULL )
|
if( count == NULL )
|
||||||
{
|
{
|
||||||
char * k = g_strdup( key );
|
|
||||||
count = tr_new0( int, 1 );
|
count = tr_new0( int, 1 );
|
||||||
g_hash_table_insert( hosts_hash, k, count );
|
g_hash_table_insert( hosts_hash, g_strdup( key ), count );
|
||||||
g_ptr_array_add( hosts, k );
|
g_ptr_array_add( hosts, g_strdup( key ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
for( k=0; k<keyCount; ++k )
|
for( k=0; k<keyCount; ++k )
|
||||||
|
|
Loading…
Reference in a new issue