src/GUI/Highlight.cxx: fixed bug in FdmInitialisedListener destructor.
Use m_fdm_initialised to unregister our listener, as it waill always be valid, unlike globals->get_props()->getNode(...).
This commit is contained in:
parent
f2d05e33e3
commit
da7434f2e2
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ struct FdmInitialisedListener : SGPropertyChangeListener
|
||||||
}
|
}
|
||||||
~FdmInitialisedListener()
|
~FdmInitialisedListener()
|
||||||
{
|
{
|
||||||
globals->get_props()->getNode("sim/fdm-initialized")->removeChangeListener(this);
|
m_fdm_initialised->removeChangeListener(this);
|
||||||
}
|
}
|
||||||
SGPropertyNode_ptr m_fdm_initialised;
|
SGPropertyNode_ptr m_fdm_initialised;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue