Fix of memory leak in TreeStore::check_name destruction.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2012-08-24 14:40:19 +04:00
parent 7ede081a14
commit dc52b3488d

View File

@ -908,7 +908,7 @@ tree_store_end_check (void)
ts.add_queue_vpath = g_list_reverse (ts.add_queue_vpath);
the_queue = ts.add_queue_vpath;
ts.add_queue_vpath = NULL;
g_free (ts.check_name);
vfs_path_free (ts.check_name);
ts.check_name = NULL;
g_list_foreach (the_queue, (GFunc) vfs_path_free, NULL);