Fix a crash with the native menubar.
http://code.google.com/p/flightgear-bugs/issues/detail?id=821
This commit is contained in:
parent
bd0a5d825d
commit
4593c3521f
1 changed files with 2 additions and 2 deletions
|
@ -76,8 +76,6 @@ menu_callback (puObject * object)
|
||||||
mb->fireItem(object);
|
mb->fireItem(object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
||||||
// Implementation of FGPUIMenuBar.
|
// Implementation of FGPUIMenuBar.
|
||||||
////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -98,6 +96,8 @@ void
|
||||||
FGPUIMenuBar::init ()
|
FGPUIMenuBar::init ()
|
||||||
{
|
{
|
||||||
delete _menuBar; // FIXME: check if PUI owns the pointer
|
delete _menuBar; // FIXME: check if PUI owns the pointer
|
||||||
|
_menuBar = NULL;
|
||||||
|
|
||||||
make_menubar();
|
make_menubar();
|
||||||
// FIXME: temporary commands to get at
|
// FIXME: temporary commands to get at
|
||||||
// old, hard-coded dialogs.
|
// old, hard-coded dialogs.
|
||||||
|
|
Loading…
Reference in a new issue