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,8 +108,10 @@ 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());
|
||||
// FIXME: save width/height as well?
|
||||
|
|
Loading…
Reference in a new issue