when treeItem is auto-deleted by Tree, or developer. The treeItem's child not be deleted, also the child which is tag by auto-deleted.
In Tree's destruct function, it calls resetList_impl to delete auto-delete child treeitem.
so i add two functions, name resetList and resetList_impl, and add resetList_impl in destruct function...copy ceguitree's code
freedom to developer or a bug?
treeItem memory leak
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: treeItem memory leak
1... 2... 3... 4... 5... 6... 7... 8... 9... 10... Grrrrr... Nope, counting to 10 does not help.... ARRRRRRRRRGGGGGGHHHHHHH! I really, really, really hate this tree
The fact that there have been so, so many issues with this one component should serve as an example to everyone as to why I am so very strict about what does and does not go into the CEGUI code base. I will reiterate that this code should never have been put into CEGUI, and the people responsible for doing this should be ashamed of themselves.
/rant
Ok. Yes, I can confirm this as an issue. I will add a ticket for it so that it gets fixed.
Thanks a lot for raising the issue!
CE.
The fact that there have been so, so many issues with this one component should serve as an example to everyone as to why I am so very strict about what does and does not go into the CEGUI code base. I will reiterate that this code should never have been put into CEGUI, and the people responsible for doing this should be ashamed of themselves.
/rant
Ok. Yes, I can confirm this as an issue. I will add a ticket for it so that it gets fixed.
Thanks a lot for raising the issue!
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Return to “Bug Reports, Suggestions, Feature Requests”
Who is online
Users browsing this forum: No registered users and 0 guests