From 69aec317f03b9270e77a58da3802f9251c70d67c Mon Sep 17 00:00:00 2001 From: Martin Gysel Date: Thu, 27 Sep 2012 23:05:54 +0200 Subject: close directory after reading entries otherwise the filedescriptor keeps open which prevents a smooth unmounting as long as subsurface is open Signed-off-by: Martin Gysel Signed-off-by: Dirk Hohndel --- uemis-downloader.c | 1 + 1 file changed, 1 insertion(+) diff --git a/uemis-downloader.c b/uemis-downloader.c index 0c6e33c1e..75eca6acc 100644 --- a/uemis-downloader.c +++ b/uemis-downloader.c @@ -88,6 +88,7 @@ static int number_of_file(char *path) GDir *dir = g_dir_open(path, 0, NULL); while (g_dir_read_name(dir)) count++; + g_dir_close(dir); return count; } -- cgit v1.2.3-70-g09d2