From fefc4366454085e6adf3b620e0fda96299103e57 Mon Sep 17 00:00:00 2001 From: bitsawer Date: Mon, 15 Aug 2022 20:27:29 +0300 Subject: [PATCH] Fix Windows list dir handle leak (cherry picked from commit 40325006b6c08c32b3db9dfd901e54d44b9d4dc3) --- drivers/windows/dir_access_windows.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/windows/dir_access_windows.cpp b/drivers/windows/dir_access_windows.cpp index 9586b8497..b4cc583c8 100644 --- a/drivers/windows/dir_access_windows.cpp +++ b/drivers/windows/dir_access_windows.cpp @@ -404,6 +404,8 @@ DirAccessWindows::DirAccessWindows() { } DirAccessWindows::~DirAccessWindows() { + list_dir_end(); + memdelete(p); }