1
0
Fork 0

Don't crash on exit, when initialization was aborted.

Some errors cause fgfs to abort/exit before "controls" is set.
This commit is contained in:
ThorstenB 2011-07-13 21:52:29 +02:00
parent 557b16da6e
commit dcc8d22f7c

View file

@ -182,8 +182,12 @@ FGGlobals::~FGGlobals()
delete current_panel;
delete ATC_mgr;
controls->unbind();
delete controls;
if (controls)
{
controls->unbind();
delete controls;
}
delete channel_options_list;
delete initial_waypoints;