PUI Compat: handle failed loads without crash
This commit is contained in:
parent
c6ed57d04b
commit
6bb22caea2
1 changed files with 4 additions and 2 deletions
|
@ -108,7 +108,9 @@ FGPUICompatDialog::FGPUICompatDialog(SGPropertyNode* props) : FGDialog(props),
|
|||
|
||||
FGPUICompatDialog::~FGPUICompatDialog()
|
||||
{
|
||||
_peer->callMethod<void>("doClose");
|
||||
if (_peer) {
|
||||
_peer->callMethod<void>("doClose");
|
||||
}
|
||||
|
||||
_props->setIntValue("lastx", getX());
|
||||
_props->setIntValue("lasty", getY());
|
||||
|
|
Loading…
Reference in a new issue