Subject TBookmark Freeing?
Author

I have a bit of code where I grab the bookmark and attach it to a node of a TreeView:


var

fBkMrk: TObject;

begin

....

TBookMark(fBkMrk) := qryRiders.GetBookmark;

tChildNode := Items.AddChildObject(tNode, Title, fBkMrk);

  

I have found a memory leak relating to this. But I can't for the life of me figure out how to handle this data pointer to free it when the TreeView is destroying.  Any help would be appreciated.