[Kde-games-devel] Review Request 113671: KMines: krazy fix: Using QPointers when showing modal dialogs via exec()

Albert Astals Cid aacid at kde.org
Sat Nov 9 22:34:09 UTC 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/113671/#review43308
-----------------------------------------------------------


Can you reproduce the crash without the patch?

Because i do this:
 * start kmines (even kmines with valgrind)
 * show the highscores dialog 
 * Call qdbus org.kde.kmines-$pidthatkmineshas /MainApplication quit

And there's not a crash nor a valgrind complain. 

- Albert Astals Cid


On Nov. 6, 2013, 7:02 a.m., Harsh Kumar wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/113671/
> -----------------------------------------------------------
> 
> (Updated Nov. 6, 2013, 7:02 a.m.)
> 
> 
> Review request for KDE Games.
> 
> 
> Repository: kmines
> 
> 
> Description
> -------
> 
> This is to fix a issue flagged by Krazy Code Checker :
> ebn.kde.org/krazy/reports/kde-4.x/kdegames/kmines/index.html
> 
> In the fix, QPointers is used to create an object for modal dialogs which are shown via exec(). As mentioned in blogs.kde.org/node/3919, this fix will prevent crashing of the application when it is exited externally, for example by dbus.
> 
> Patch Changes the file - kmines/mainwindow.cpp
> 
> 
> Diffs
> -----
> 
>   mainwindow.cpp 078dc6e 
> 
> Diff: http://git.reviewboard.kde.org/r/113671/diff/
> 
> 
> Testing
> -------
> 
> Compiles & runs (on Arch Linux)
> 
> 
> Thanks,
> 
> Harsh Kumar
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-games-devel/attachments/20131109/078f2799/attachment.html>


More information about the kde-games-devel mailing list