removes the destructor in cadaddcommand

This resolves the crashing that occurred whenever undo was repeatedly done and the state at the stack's top was reached. So issue #51 is solved.