Fixed wrong deallocation of device resources which caused KDL when unplugging devices with more than one interface.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21038 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -222,7 +222,7 @@ Device::~Device()
|
||||
for (int32 i = 0; i < fDeviceDescriptor.num_configurations; i++) {
|
||||
usb_configuration_info *configuration = &fConfigurations[i];
|
||||
for (size_t j = 0; j < configuration->interface_count; j++) {
|
||||
usb_interface_list *interfaceList = configuration->interface;
|
||||
usb_interface_list *interfaceList = &configuration->interface[j];
|
||||
for (size_t k = 0; k < interfaceList->alt_count; k++) {
|
||||
usb_interface_info *interface = &interfaceList->alt[k];
|
||||
delete (Interface *)GetStack()->GetObject(interface->handle);
|
||||
|
||||
Reference in New Issue
Block a user