> will all children's destructors be called when I call method "removeAll" > of the parent-widget?
The removeAll method is implemented in the Parent class. The removeAll method calls the remove method for each child widget. The remove method only removes the widget from the parent (removes only the association between them), but does not destroy it immediately. The object is freed and the destructor is called later during garbage collection if no reference left to the widget (Object), since it becomes unaccessible from your code. However the object is not disposed if you keep reference(s) to the object, which could cause memory leakage. Be aware of circular references (for example: parent->child->parent). Take a look at the destructor of the Parent class in qooxdoo as an example of best practices. More information: http://qooxdoo.org/documentation/0.7/destructor_support Best wishes, Viktor ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
