Browse Source

Not calling FreeFileList for local files list.

(thanks to dynamic_cast in FreeFiles, it was not crashing)

(cherry picked from commit 6e60cf5d665ec3c79c4b6c80212e697009cf7be7)

Source commit: e587d884892c9226cf22818c22200ef331485af7
Martin Prikryl 5 years ago
parent
commit
1fa88cca2a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      source/core/Script.cpp

+ 1 - 1
source/core/Script.cpp

@@ -1548,7 +1548,7 @@ void __fastcall TScript::PutProc(TScriptProcParams * Parameters)
   }
   __finally
   {
-    FreeFileList(FileList);
+    delete FileList;
   }
 }
 //---------------------------------------------------------------------------