From eaee5ebf780f97e1a959d23b8a7c233b45606a58 Mon Sep 17 00:00:00 2001 From: iobyte Date: Sat, 8 Jan 2022 00:07:54 +0000 Subject: [PATCH] add missing _findclose git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7884 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 514add2e07826b1b78d3a1ec2cfdf8e33dfb58c9 Former-commit-id: 5b6a445bb37fa23ebe0ecb2b386716f69729cb74 --- src/libs/tgf/windowsspec.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libs/tgf/windowsspec.cpp b/src/libs/tgf/windowsspec.cpp index 251ce4f05..de3714ac8 100644 --- a/src/libs/tgf/windowsspec.cpp +++ b/src/libs/tgf/windowsspec.cpp @@ -461,7 +461,8 @@ windowsDirGetList(const char *dir) } } while ( _findnext( Dirent, &FData ) != -1 ); } - + _findclose(Dirent); + return flist; } @@ -536,7 +537,8 @@ windowsDirGetListFiltered(const char *dir, const char *prefix, const char *suffi } } while (_findnext( Dirent, &FData ) != -1); } - + _findclose(Dirent); + return flist; }