Change usage of QDialog::exec() to use QPointer for the dialog in Marble (krazy2)
completed by: ☃ snowman
mentors: Torsten Rahn, Dennis Nienhüser
Handling modal dialogs is a bit tricky when one wants to avoid memory leaks and prevent crashes in certain situations. Fortunately krazy detects some of the places where we do it wrong. This task is about fixing them.
- Read http://www.kdedevelopers.org/node/3919
- Open http://ebn.kde.org/krazy/reports/kde-4.x/kdeedu/marble/index.html and scroll down to the section "Check for code that should be considered crashy".
- Fix each of the issues outlined there. TourWidget.cpp#224 has been fixed in http://quickgit.kde.org/?p=marble.git&a=commitdiff&h=db33e84 and can be used as an example.
- Create a review request