core/library: Close directory after reading

We were opening a directory for scanning, but we never closed when we
were done.  If we do this enough then the kernel starts telling us that
there are too many open files.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2016-01-11 09:55:49 -05:00
parent 4f3b05ebbb
commit eac0b92f0d
1 changed files with 1 additions and 0 deletions

View File

@ -119,6 +119,7 @@ static void scan_path(void *data)
}
track_db_commit();
g_dir_close(dir);
delete scan;
}