Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.3
kaffeine
crash-on-resume-fix.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File crash-on-resume-fix.patch of Package kaffeine
--- src/dvb/dvbmanager.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) --- a/src/dvb/dvbmanager.cpp +++ b/src/dvb/dvbmanager.cpp @@ -448,15 +448,17 @@ void DvbManager::deviceAdded(DvbBackendD void DvbManager::deviceRemoved(DvbBackendDevice *backendDevice) { for (int i = 0; i < deviceConfigs.size(); ++i) { - if (deviceConfigs.at(i).device->getBackendDevice() == backendDevice) { - if (deviceConfigs[i].useCount != 0) { - deviceConfigs[i].useCount = 0; - deviceConfigs[i].prioritizedUseCount = 0; - deviceConfigs[i].device->release(); + DvbDeviceConfig &it = deviceConfigs[i]; + + if (it.device && it.device->getBackendDevice() == backendDevice) { + if (it.useCount != 0) { + it.useCount = 0; + it.prioritizedUseCount = 0; + it.device->release(); } - delete deviceConfigs[i].device; - deviceConfigs[i].device = NULL; + delete it.device; + it.device = NULL; break; } }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor