harvester/client/src/harvestereventobserverao.cpp
branchRCL_3
changeset 19 b73252188534
parent 7 3cebc1a84278
equal deleted inserted replaced
18:63c982fb92f2 19:b73252188534
   124 			TIpcArgs ipcArgs( observer->iObserverInfo.iObserverId, 
   124 			TIpcArgs ipcArgs( observer->iObserverInfo.iObserverId, 
   125 							iHarvesterEventQueue.Handle() );
   125 							iHarvesterEventQueue.Handle() );
   126 			iHarvesterClient.Send( EUnregisterHarvesterEvent, ipcArgs );
   126 			iHarvesterClient.Send( EUnregisterHarvesterEvent, ipcArgs );
   127 			iObservers.Remove( i );
   127 			iObservers.Remove( i );
   128 			delete observer;
   128 			delete observer;
       
   129 			observer = NULL;
   129 			}
   130 			}
   130 		}
   131 		}
   131 
   132 
   132 	// close event queue if all observers are removed
   133 	// close event queue if all observers are removed
   133 	if( iObservers.Count() == 0 )
   134 	if( iObservers.Count() == 0 )