equal
deleted
inserted
replaced
1206 DLddUsbcScChannel::~DLddUsbcScChannel() |
1206 DLddUsbcScChannel::~DLddUsbcScChannel() |
1207 { |
1207 { |
1208 __KTRACE_OPT(KUSB, Kern::Printf("DLddUsbcScChannel::~DLddUsbcScChannel()")); |
1208 __KTRACE_OPT(KUSB, Kern::Printf("DLddUsbcScChannel::~DLddUsbcScChannel()")); |
1209 if (iController) |
1209 if (iController) |
1210 { |
1210 { |
|
1211 iController->DeRegisterClient(this); |
1211 iStatusCallbackInfo.Cancel(); |
1212 iStatusCallbackInfo.Cancel(); |
1212 iEndpointStatusCallbackInfo.Cancel(); |
1213 iEndpointStatusCallbackInfo.Cancel(); |
1213 iOtgFeatureCallbackInfo.Cancel(); |
1214 iOtgFeatureCallbackInfo.Cancel(); |
1214 iCompleteAllCallbackInfo.Cancel(); |
1215 iCompleteAllCallbackInfo.Cancel(); |
1215 DestroyAllInterfaces(); |
1216 DestroyAllInterfaces(); |
1216 if (iOwnsDeviceControl) |
1217 if (iOwnsDeviceControl) |
1217 { |
1218 { |
1218 iController->ReleaseDeviceControl(this); |
1219 iController->ReleaseDeviceControl(this); |
1219 iOwnsDeviceControl = EFalse; |
1220 iOwnsDeviceControl = EFalse; |
1220 } |
1221 } |
1221 iController->DeRegisterClient(this); |
|
1222 iController=NULL; |
1222 iController=NULL; |
1223 DestroyEp0(); |
1223 DestroyEp0(); |
1224 if (iStatusFifo!=NULL) |
1224 if (iStatusFifo!=NULL) |
1225 { |
1225 { |
1226 delete iStatusFifo; |
1226 delete iStatusFifo; |