D27468: Don't double delete CommentsModel
David Edmundson
noreply at phabricator.kde.org
Mon Feb 17 23:31:02 GMT 2020
davidedmundson created this revision.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
davidedmundson requested review of this revision.
REVISION SUMMARY
CommentsModel instances are owned by the engine.
They are fetched through a getter with a cache, so ownership has to stay
that way.
QuickItemsModel should not be deleting them.
BUG: 417802
TEST PLAN
Got a valgrind log of the crash, which showed the issue
(see attached bug report)
Afterwards:
Opened systemsettings, opened comments dialog
Closed systemsettings
REPOSITORY
R304 KNewStuff
BRANCH
master
REVISION DETAIL
https://phabricator.kde.org/D27468
AFFECTED FILES
src/qtquick/quickitemsmodel.cpp
To: davidedmundson
Cc: kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200217/7860bc82/attachment.html>
More information about the Kde-frameworks-devel
mailing list