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,7 +27,8 @@ SGBinding::SGBinding(const SGPropertyNode* node, SGPropertyNode* root)
|
|||||||
|
|
||||||
SGBinding::~SGBinding()
|
SGBinding::~SGBinding()
|
||||||
{
|
{
|
||||||
_arg->getParent()->removeChild(_arg->getName(), _arg->getIndex(), false);
|
if(_arg && _arg->getParent())
|
||||||
|
_arg->getParent()->removeChild(_arg->getName(), _arg->getIndex(), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user