robvdl/MapEditor — Issue #3: Fix Bug: Crash at application shutdown since Settings object was added
Author: robvdl
Created: 2012-01-06 00:40:21+00:00
State: open

You are declaring the Settings* settings object as well as instantiating it in the MainWindow constructor. As soon as the constructor exits, that settings variable goes out of scope....

When it then tries to call "delete settings" in the WainWindow destructor, settings may point to a random memory location as it is out of scope and the application crashes when you quit the application. with the message "the application ended unexpectedly".

Please declare the variable settings only under the .h file as a private variable

You should only instantiate it in the MainWindow constructor, but not declare it, that should be in the .h

Please fix this and make the error go away, then do a push.