What is the proper way of removing items from a layout?

If I am removing all Members from a Canvas (a VLayout for example)… can I just call:

myLayout.removeMembers(myLayout.getMemebers());

Is this sufficient from a garbage collection standpoint? Or do I have to do something like:

Canvas members = myLayout.getMembers();
myLayout.removeMembers(members);
for (Canvas m : members)
m.destroy();

I would really appreciate an answer to this question. Thank you very much.

Joe

You do need to call destroy(). However destroying a Layout (any parent in general) automatically destroys all members / children.