Review Request 123493: Fix leaky incubation controller

David Edmundson david at davidedmundson.co.uk
Fri Apr 24 16:43:24 UTC 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/123493/
-----------------------------------------------------------

Review request for KDE Frameworks and Plasma.


Repository: kdeclarative


Description
-------

Docs for QQmlEngine explcitly say

"The engine can only have one active controller and it does not take
ownership of it." therefore we need to set a parent.

The incubator controls the deletion of generated objects, so this means we're leaking all QML items created by the KDeclarative::QmlObject.


Diffs
-----

  src/kdeclarative/qmlobject.cpp c483665c43985ba57459a880895ee8bf7ff92041 

Diff: https://git.reviewboard.kde.org/r/123493/diff/


Testing
-------

Plasma shell still loads and runs fine. Valgrind is a lot less angry.
Will merge after 5.10 to play safe.


Thanks,

David Edmundson

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20150424/a18f0b6f/attachment.html>


More information about the Plasma-devel mailing list