Fixed memory leak and made destructor virtual.
Small cleanup in Actions/Settings.{hpp,cpp}.