diff --git a/Client/UfrmMain.pas b/Client/UfrmMain.pas index feeeebe..0998ebb 100644 --- a/Client/UfrmMain.pas +++ b/Client/UfrmMain.pas @@ -1071,7 +1071,7 @@ begin if cbRandomPreset.ItemIndex > -1 then begin preset := TDOMElement(cbRandomPreset.Items.Objects[cbRandomPreset.ItemIndex]); - FRandomPresetsDoc.DocumentElement.RemoveChild(preset); + FRandomPresetsDoc.DocumentElement.RemoveChild(preset).Free; cbRandomPreset.Items.Delete(cbRandomPreset.ItemIndex); cbRandomPreset.ItemIndex := -1; end; @@ -1100,7 +1100,7 @@ begin begin children := presetElement.ChildNodes; for i := children.Count - 1 downto 0 do - presetElement.RemoveChild(children[i]); + presetElement.RemoveChild(children[i]).Free; end; tileNode := vdtRandom.GetFirst;