Browse Source

Not calling FreeFileList for local files list.

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

Source commit: c3c357bbcf70ade1b44bc32653536ac8f64a9a27
Martin Prikryl 5 years ago
parent
commit
6e60cf5d66
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;
   }
 }
 //---------------------------------------------------------------------------