🚨 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
|
(not frmMoveSettings.cbAsk.Checked) or ConfirmAction then
|
||||||
begin
|
begin
|
||||||
targetBlocks := TBlockInfoList.Create;
|
targetBlocks := TBlockInfoList.Create;
|
||||||
|
try
|
||||||
if SelectedTile = targetTile then
|
if SelectedTile = targetTile then
|
||||||
begin
|
begin
|
||||||
blockInfo := nil;
|
blockInfo := nil;
|
||||||
@@ -901,7 +902,9 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
targetBlocks.Free;
|
finally
|
||||||
|
targetBlocks.Free;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|||||||
Reference in New Issue
Block a user