- //----------------------------------------------------------------------------
- void Canvas::destroy()
- {
- if( _root_group )
- _root_group->clearEventListener();
-
- // TODO check if really not in use anymore
- getProps()->getParent()
- ->removeChild( getProps()->getName(),
- getProps()->getIndex(),
- false );
- }
-