Explanation of TFolder::Clear says:
Delete all objects from a folder list.
Does it mean that it:
- simply removes the object from the list or
- deletes it leaving a dangling pointer
- deletes the object and removes the pointer?
Please read tips for efficient and successful posting and posting code
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided
@pcanal could you please check this post? thanks!
It will never do 2.
It might do 1. or 3. depending on whether you explicitly made the TFolder owner of its content (by calling TFolder::SetOwner). See the the TFolder description/documentation for more details.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.