From b6520485ca65fdf0d9e75c2353bac76cbcee79ce Mon Sep 17 00:00:00 2001 From: curt Date: Thu, 16 Aug 2001 16:06:55 +0000 Subject: [PATCH] Fix a segfault on exit. Introduces a small memory leak if the instrument panel is reloaded, but *hopefully* David will fix this soon. ;-) --- src/Input/input.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Input/input.cxx b/src/Input/input.cxx index f35c4ab29..1ebf78d91 100644 --- a/src/Input/input.cxx +++ b/src/Input/input.cxx @@ -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; } -- 2.39.5