🚨 Free the edit target list when an edit action fails mid-way
This commit is contained in:
+4
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user