serviceproviders/sapi_location/tsrc/dev/tlocationprovidertest/src/tgetlocwrongcancel.cpp
changeset 22 fc9cf246af83
parent 19 989d2f495d90
child 33 50974a8b132e
--- a/serviceproviders/sapi_location/tsrc/dev/tlocationprovidertest/src/tgetlocwrongcancel.cpp	Fri Jul 03 15:51:24 2009 +0100
+++ b/serviceproviders/sapi_location/tsrc/dev/tlocationprovidertest/src/tgetlocwrongcancel.cpp	Thu Aug 27 07:43:07 2009 +0300
@@ -53,6 +53,7 @@
 
 TInt GetLocWrongCancelL()
 {
+    __UHEAP_MARK ;
 	WrongNotificationGetLoc MyUpdates ;
 	
     CActiveScheduler *Scheduler  = CActiveScheduler :: Current() ;
@@ -128,13 +129,14 @@
    const TLiwGenericParam *errprm = OutParmList->FindFirst(pos , KErrCode) ;
    
    TInt ret = (errprm->Value()).AsTInt32() ;
-    
+    a.ResetAndDestroy() ;
     delete Scheduler ;
     
     locinterface->Close();
     delete InputList ;
     delete  OutParmList ;
-    
+    delete ServiceHandler;
+    __UHEAP_MARKEND ;
     if ( SErrNotFound == ret )
 	    {
 	    return KErrNone;