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:
@@ -37,6 +37,7 @@ namespace simgear
|
||||
void PropertyBasedMgr::shutdown()
|
||||
{
|
||||
_props->removeChangeListener(this);
|
||||
_elements.clear();
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user