Don't crash when destroying a SGBinding object if the property node it
was loaded from lacks a parent. Patch from ndim on IRC
This commit is contained in:
parent
8663c265d8
commit
607511fd64
@ -27,6 +27,7 @@ SGBinding::SGBinding(const SGPropertyNode* node, SGPropertyNode* root)
|
||||
|
||||
SGBinding::~SGBinding()
|
||||
{
|
||||
if(_arg && _arg->getParent())
|
||||
_arg->getParent()->removeChild(_arg->getName(), _arg->getIndex(), false);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user