🚨 Free the edit target list when an edit action fails mid-way

This commit is contained in:
2026-11-15 22:08:32 +01:00
parent dd20f4962d
commit 481d6ac905
+4 -1
View File
@@ -801,6 +801,7 @@ begin
(not frmMoveSettings.cbAsk.Checked) or ConfirmAction then
begin
targetBlocks := TBlockInfoList.Create;
try
if SelectedTile = targetTile then
begin
blockInfo := nil;
@@ -901,7 +902,9 @@ begin
end;
end;
targetBlocks.Free;
finally
targetBlocks.Free;
end;
end;
end;
end;