summaryrefslogtreecommitdiffstats
path: root/uemis-downloader.c
diff options
context:
space:
mode:
authorGravatar Martin Gysel <me@bearsh.org>2012-09-27 23:05:54 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-09-29 08:19:27 -0700
commit69aec317f03b9270e77a58da3802f9251c70d67c (patch)
tree2121c91ff4d1154d73d1029cedcaec05910ba2ee /uemis-downloader.c
parent7f5ecb5bb7791a9c07380f66693f78aa9acb4f28 (diff)
downloadsubsurface-69aec317f03b9270e77a58da3802f9251c70d67c.tar.gz
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 <me@bearsh.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'uemis-downloader.c')
-rw-r--r--uemis-downloader.c1
1 files changed, 1 insertions, 0 deletions
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;
}