kernel/eka/drivers/usbcsc/d_usbcsc.cpp
changeset 90 947f0dc9f7a8
parent 0 a41df078684a
child 80 597aaf25e343
child 167 b41fc9c39ca7
child 189 a5496987b1da
equal deleted inserted replaced
52:2d65c2f76d7b 90:947f0dc9f7a8
  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;