From: Charles Kerr Date: Thu, 18 Mar 2010 03:40:32 +0000 (+0000) Subject: (trunk gtk) fix memory leak X-Git-Tag: 2.00~321 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f31e5d02a84e5fcba846bf080a88f64a7d8e5d8;p=transmission (trunk gtk) fix memory leak --- diff --git a/gtk/filter.c b/gtk/filter.c index 4e31062e4..99e21359a 100644 --- a/gtk/filter.c +++ b/gtk/filter.c @@ -317,9 +317,9 @@ category_filter_model_update( GtkTreeStore * store ) } /* cleanup */ + g_ptr_array_foreach( hosts, (GFunc)g_free, NULL ); g_ptr_array_free( hosts, TRUE ); g_hash_table_unref( hosts_hash ); - g_ptr_array_foreach( hosts, (GFunc)g_free, NULL ); return FALSE; }