diff --git a/src/Input/input.cxx b/src/Input/input.cxx index 54cecb9c2..5d2f207d8 100644 --- a/src/Input/input.cxx +++ b/src/Input/input.cxx @@ -94,11 +94,6 @@ FGBinding::FGBinding (const SGPropertyNode * node) read(node); } -FGBinding::~FGBinding () -{ - delete _arg; // Delete the saved arguments -} - void FGBinding::read (const SGPropertyNode * node) { @@ -113,7 +108,6 @@ FGBinding::read (const SGPropertyNode * node) return; } - delete _arg; _arg = new SGPropertyNode; _setting = 0; copyProperties(node, _arg); // FIXME: don't use whole node!!! diff --git a/src/Input/input.hxx b/src/Input/input.hxx index c3f980f0d..9e043a7bb 100644 --- a/src/Input/input.hxx +++ b/src/Input/input.hxx @@ -83,7 +83,7 @@ public: /** * Destructor. */ - virtual ~FGBinding (); + virtual ~FGBinding () {} /** @@ -148,7 +148,7 @@ private: string _command_name; mutable SGCommandMgr::command_t _command; - mutable SGPropertyNode * _arg; + mutable SGPropertyNode_ptr _arg; mutable SGPropertyNode_ptr _setting; };