I've have a pretty simple question that I can't seem to figure out.
In the following code, XMLDoc will be freed when AOwner is free'd correct?
{...}
TServiceList = class(TListBox, IServiceView)
private
protected
XMLDoc : TXMLDocument;
{...}
constructor TServiceList.Create(AOwner: TComponent);
begin
inherited;
{...}
XMLDoc := TXMLDocument.Create(AOwner);
{...}
end;
In the following code, XMLDoc will be freed when AOwner is free'd correct?
{...}
TServiceList = class(TListBox, IServiceView)
private
protected
XMLDoc : TXMLDocument;
{...}
constructor TServiceList.Create(AOwner: TComponent);
begin
inherited;
{...}
XMLDoc := TXMLDocument.Create(AOwner);
{...}
end;