Review Request 119165: store the containment as a qpointer
Marco Martin
notmart at gmail.com
Mon Jul 7 20:10:04 UTC 2014
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/119165/
-----------------------------------------------------------
Review request for KDE Frameworks, Plasma and Aleix Pol Gonzalez.
Repository: plasma-framework
Description
-------
This solves the crash
http://pastebin.com/tMYdgpUT
the problem is that sometimes when QCoreApplication::aboutToQuit the containment is already deleted (the order is not really deterministic), therefore appletScript::applet() will hit an assert.
using a qpointer should solve it, its data being already 0ed in the cases the containment is already deleted at :aboutToquit time.
Diffs
-----
src/scriptengines/qml/plasmoid/containmentinterface.h 3ecdddf
src/scriptengines/qml/plasmoid/containmentinterface.cpp f1762fe
Diff: https://git.reviewboard.kde.org/r/119165/diff/
Testing
-------
Thanks,
Marco Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20140707/8d678fc3/attachment.html>
More information about the Kde-frameworks-devel
mailing list