]> git.mxchange.org Git - flightgear.git/commitdiff
Fix a segfault on exit. Introduces a small memory leak if the instrument
authorcurt <curt>
Thu, 16 Aug 2001 16:06:55 +0000 (16:06 +0000)
committercurt <curt>
Thu, 16 Aug 2001 16:06:55 +0000 (16:06 +0000)
panel is reloaded, but *hopefully* David will fix this soon. ;-)

src/Input/input.cxx

index f35c4ab295ee426735a692113fb4d4f56083335f..1ebf78d915e85a8fecce16db76c95e0670872908 100644 (file)
@@ -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;
 }