From 6aa9503f2fc5e8d5327f2dc8f1edd3a88c3b17ee Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sat, 24 Aug 2013 10:08:39 +0400 Subject: [PATCH] (clean_dir): try minimize memory usage. Signed-off-by: Andrew Borodin --- src/filemanager/dir.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/filemanager/dir.c b/src/filemanager/dir.c index ea8044e5d..52043c1cf 100644 --- a/src/filemanager/dir.c +++ b/src/filemanager/dir.c @@ -492,6 +492,8 @@ clean_dir (dir_list * list) } list->len = 0; + /* reduce memory usage */ + dir_list_grow (list, MIN_FILES - list->size); } /* --------------------------------------------------------------------------------------------- */