Don't double delete CommentsModel
ClosedPublic

Authored by davidedmundson on Feb 17 2020, 11:31 PM.

Details

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

Diff Detail

Repository
R304 KNewStuff
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
Restricted Application added a project: Frameworks. · View Herald TranscriptFeb 17 2020, 11:31 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
davidedmundson requested review of this revision.Feb 17 2020, 11:31 PM
leinir accepted this revision.Feb 18 2020, 8:39 AM
leinir added a subscriber: leinir.

Quite right. Looks like some leftovers from before that caching was added, shippit :)

This revision is now accepted and ready to land.Feb 18 2020, 8:39 AM
This revision was automatically updated to reflect the committed changes.