]> granicus.if.org Git - transmission/commitdiff
(trunk gtk) fix memory leak
authorCharles Kerr <charles@transmissionbt.com>
Thu, 18 Mar 2010 03:40:32 +0000 (03:40 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Thu, 18 Mar 2010 03:40:32 +0000 (03:40 +0000)
gtk/filter.c

index 4e31062e4a119078eacbc87638b2f3e1778fa542..99e21359aba2f76bd8f5aaf894c4aaae21a7c8c8 100644 (file)
@@ -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;
 }