Hi,
I'm wondering if a CEGUI object automaticaly deletes their childs when he died...
For example, if I do this : obj->addItem(new Item("blablabla"));
If I call "delete obj;" obj will deletes the new item or I have to delete it myself ?
Thanks
CEGUI object deletes childs ?
Moderators: CEGUI MVP, CEGUI Team
Re: CEGUI object deletes childs ?
Yes, parents automatically delete children when they are destroyed. This setting can be changed via Window::setDestroyedByParent.
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!
Re: CEGUI object deletes childs ?
I wasn't be sure 
Thanks for the confirmation !
Thanks for the confirmation !
Who is online
Users browsing this forum: No registered users and 31 guests

