| Summary: | KDE Info Center Crashes on Exit | ||
|---|---|---|---|
| Product: | [Applications] kinfocenter | Reporter: | ramin <ramindeh> |
| Component: | general | Assignee: | David Hubner <hubn3rd> |
| Status: | RESOLVED FIXED | ||
| Severity: | crash | CC: | cfeck, kde |
| Priority: | NOR | Keywords: | drkonqi |
| Version First Reported In: | 5.3.2 | ||
| Target Milestone: | --- | ||
| Platform: | Fedora RPMs | ||
| OS: | Linux | ||
| Latest Commit: | http://commits.kde.org/kinfocenter/95569a0eae884427c7f7ab11fd63ae577f0be16d | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
ramin
2015-08-01 16:01:02 UTC
*** This bug has been marked as a duplicate of bug 347344 *** Git commit 95569a0eae884427c7f7ab11fd63ae577f0be16d by David Edmundson. Committed on 08/05/2016 at 12:56. Pushed by davidedmundson into branch 'Plasma/5.6'. Keep a reference to the Solid::Device whilst using it's interface Otherwise we were effectively relying on Solid's cache for memory management. This led to a problem that QML's QObject wrapper would detect the Solid::Battery was being deleted on shutdown, and re-evaluate currentBattery. This would then call BatteryModel.fetch(0) which being slightly behind would then return an invalid object, as well as doing pointless processing during application shut down. This ensure items get deleted in the correct order. REVIEW: 127862 M +13 -16 Modules/energy/batterymodel.cpp M +2 -1 Modules/energy/batterymodel.h http://commits.kde.org/kinfocenter/95569a0eae884427c7f7ab11fd63ae577f0be16d David, what about bug 347344 ? |