serviceproviders/sapi_location/tsrc/dev/tlocationprovidertest/src/tgetlocationcancel.cpp
changeset 10 fc9cf246af83
parent 5 989d2f495d90
child 23 50974a8b132e
--- a/serviceproviders/sapi_location/tsrc/dev/tlocationprovidertest/src/tgetlocationcancel.cpp	Fri Jul 03 15:51:24 2009 +0100
+++ b/serviceproviders/sapi_location/tsrc/dev/tlocationprovidertest/src/tgetlocationcancel.cpp	Thu Aug 27 07:43:07 2009 +0300
@@ -54,6 +54,7 @@
 
 TInt GetLocCancelL()
 {
+    __UHEAP_MARK ;
 	GetLoctionCancel MyUpdates ;
 	
 	CActiveScheduler *Scheduler  = CActiveScheduler :: Current() ;
@@ -134,11 +135,12 @@
    TInt ret = (errprm->Value()).AsTInt32() ;
     
     delete Scheduler ;
-    
+    a.ResetAndDestroy();
     locinterface->Close();
     delete InputList ;
     delete  OutParmList ;
-    
+    delete ServiceHandler;
+    __UHEAP_MARKEND ;
     return ret ;  
 }