Fix a segfault on exit. Introduces a small memory leak if the instrument
panel is reloaded, but *hopefully* David will fix this soon. ;-)
This commit is contained in:
parent
0d76618950
commit
b6520485ca
1 changed files with 8 additions and 8 deletions
|
@ -103,8 +103,8 @@ FGBinding::FGBinding (const SGPropertyNode * node)
|
|||
|
||||
FGBinding::~FGBinding ()
|
||||
{
|
||||
delete _arg; // Delete the saved arguments
|
||||
delete _command_state; // Delete the saved command state
|
||||
// delete _arg; // Delete the saved arguments
|
||||
// delete _command_state; // Delete the saved command state
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -667,9 +667,9 @@ FGInput::axis::axis ()
|
|||
|
||||
FGInput::axis::~axis ()
|
||||
{
|
||||
for (int i = 0; i < FG_MOD_MAX; i++)
|
||||
for (unsigned int j = 0; i < bindings[i].size(); j++)
|
||||
delete bindings[i][j];
|
||||
// for (int i = 0; i < FG_MOD_MAX; i++)
|
||||
// for (int j = 0; i < bindings[i].size(); j++)
|
||||
// delete bindings[i][j];
|
||||
}
|
||||
|
||||
|
||||
|
@ -684,9 +684,9 @@ FGInput::joystick::joystick ()
|
|||
|
||||
FGInput::joystick::~joystick ()
|
||||
{
|
||||
delete js;
|
||||
delete[] axes;
|
||||
delete[] buttons;
|
||||
// delete js;
|
||||
// delete[] axes;
|
||||
// delete[] buttons;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue