1
0
Fork 0

Fix a crash with the native menubar.

http://code.google.com/p/flightgear-bugs/issues/detail?id=821
This commit is contained in:
James Turner 2012-08-05 21:30:15 +01:00
parent bd0a5d825d
commit 4593c3521f

View file

@ -76,8 +76,6 @@ menu_callback (puObject * object)
mb->fireItem(object);
}
////////////////////////////////////////////////////////////////////////
// Implementation of FGPUIMenuBar.
////////////////////////////////////////////////////////////////////////
@ -98,6 +96,8 @@ void
FGPUIMenuBar::init ()
{
delete _menuBar; // FIXME: check if PUI owns the pointer
_menuBar = NULL;
make_menubar();
// FIXME: temporary commands to get at
// old, hard-coded dialogs.