libraries/qr3/src/keycapture.cpp
changeset 103 56b6ee983610
parent 0 7f656887cf89
equal deleted inserted replaced
102:6a08c6931c64 103:56b6ee983610
   269 
   269 
   270 CKeyCapturer::~CKeyCapturer()
   270 CKeyCapturer::~CKeyCapturer()
   271 	{
   271 	{
   272 	Cancel();
   272 	Cancel();
   273 
   273 
   274 	for (TInt i = 0; i < iCaptures->Count(); i++)
   274 	if (iCaptures)
   275 		{
   275 		{
   276 		SCapture& cap = iCaptures->operator[](i);
   276 		for (TInt i = 0; i < iCaptures->Count(); i++)
   277 		CancelCapture(cap);
   277 			{
   278 		}
   278 			SCapture& cap = iCaptures->operator[](i);
   279 	delete iCaptures;
   279 			CancelCapture(cap);
   280 	iPushList->ResetAndDestroy();
   280 			}
   281 	delete iPushList;
   281 		delete iCaptures;
       
   282 		}
       
   283 	if (iPushList)
       
   284 		{
       
   285 		iPushList->ResetAndDestroy();
       
   286 		delete iPushList;
       
   287 		}
   282 #ifdef FSHELL_WSERV_SUPPORT
   288 #ifdef FSHELL_WSERV_SUPPORT
   283 	iWg.Close();
   289 	iWg.Close();
   284 	iWs.Close();
   290 	iWs.Close();
   285 #endif
   291 #endif
   286 	}
   292 	}