Board index » delphi » Pointer memory and memory leaking
Alan MacArthur
![]() Delphi Developer |
Mon, 25 Feb 2002 03:00:00 GMT
Pointer memory and memory leaking
I'm using TTreeNode.AddObject this way:
NewNode:=AddObject(ParentNode,'Text for this node',MyInt); where MyInt is an integer variable. When I do a TreeView1.NewNode.Delete, do I have a memory leak? The help file says: function AddObject(Node: TTreeNode; const S: string; Ptr: Pointer): Description The node is added as the last sibling of the node specified by the Node Note The memory referenced by Ptr is not freed when the tree nodes object is |