Fixed memory leak
This commit is contained in:
parent
261b762572
commit
81c8e0c07e
|
@ -87,6 +87,7 @@ begin
|
||||||
WriteLn('--- Day 1: Trebuchet?! ---');
|
WriteLn('--- Day 1: Trebuchet?! ---');
|
||||||
trebuchet := TTrebuchet.Create;
|
trebuchet := TTrebuchet.Create;
|
||||||
trebuchet.RunSolution;
|
trebuchet.RunSolution;
|
||||||
|
trebuchet.Free;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
constructor TTrebuchet.Create;
|
constructor TTrebuchet.Create;
|
||||||
|
|
Loading…
Reference in New Issue