|
@@ -48,14 +48,6 @@ namespace BansheeEngine
|
|
|
mOwnerTargetResizedConn.disconnect();
|
|
mOwnerTargetResizedConn.disconnect();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // Iterate over all elements in this way because each
|
|
|
|
|
- // GUIElement::destroy call internally unregisters the element
|
|
|
|
|
- // from the widget, and modifies the mElements array
|
|
|
|
|
- while (mElements.size() > 0)
|
|
|
|
|
- {
|
|
|
|
|
- GUIElement::destroy(mElements[0]);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
for (auto& area : mAreas)
|
|
for (auto& area : mAreas)
|
|
|
{
|
|
{
|
|
|
GUIArea::destroyInternal(area);
|
|
GUIArea::destroyInternal(area);
|