From: curt Date: Thu, 16 Aug 2001 16:06:55 +0000 (+0000) Subject: Fix a segfault on exit. Introduces a small memory leak if the instrument X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b6520485ca65fdf0d9e75c2353bac76cbcee79ce;p=flightgear.git Fix a segfault on exit. Introduces a small memory leak if the instrument panel is reloaded, but *hopefully* David will fix this soon. ;-) --- 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; }