Canvas: clear elements in shutdown()

- without this change, elements aren't un-ref-ed and hence destroyed
until the actual dtor runs, which is too late (other systems may be
destroyed already)
This commit is contained in:
James Turner
2013-12-06 18:14:48 +00:00
parent e326d0c756
commit 3ec9c7ae6e

View File

@@ -37,6 +37,7 @@ namespace simgear
void PropertyBasedMgr::shutdown()
{
_props->removeChangeListener(this);
_elements.clear();
}
//----------------------------------------------------------------------------