mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
(tree_store_mark_checked): get rid of extra memory duplication.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
d126c5e664
commit
66a6185064
@ -772,8 +772,9 @@ tree_store_mark_checked (const char *subname)
|
|||||||
{
|
{
|
||||||
/* Doesn't exist -> add it */
|
/* Doesn't exist -> add it */
|
||||||
current = tree_store_add_entry (name);
|
current = tree_store_add_entry (name);
|
||||||
ts.add_queue_vpath = g_list_prepend (ts.add_queue_vpath, vfs_path_clone (name));
|
ts.add_queue_vpath = g_list_prepend (ts.add_queue_vpath, name);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
vfs_path_free (name);
|
vfs_path_free (name);
|
||||||
|
|
||||||
/* Clear the deletion mark from the subdirectory and its children */
|
/* Clear the deletion mark from the subdirectory and its children */
|
||||||
|
Loading…
Reference in New Issue
Block a user