[libtaskmanager] Prevent from dereferencing dangling pointer
Review Request #128021 - Created May 26, 2016 and submitted
This pointers are shared between plasma-framework and libtaskamanger
I experience rare and strage crashes in plasmashell without backtrace when tooltip is dismissed in taskmanager. I guess stack is smashed cause dereferencing invalid pointer.
Do you have a backtrace? Mostly so I can see if we can close any bug reports.
A TaskManager.Backend objects is owned by the taskItem - so the lifespan of the TaskItem will always outlive the Backend - so we shouldn't need a smart pointer.
The ToolTip is more questionable, it has the same lifespan as the backend, so it's a bit confusing as to which order they get deleted - so there is scope for a problem.
I'll wait for Eike, but +1 from me.