serviceproviders/sapi_location/tsrc/dev/tlocationprovidertest/src/tconcurrentgetlocation.cpp
changeset 22 fc9cf246af83
parent 19 989d2f495d90
child 33 50974a8b132e
--- a/serviceproviders/sapi_location/tsrc/dev/tlocationprovidertest/src/tconcurrentgetlocation.cpp	Fri Jul 03 15:51:24 2009 +0100
+++ b/serviceproviders/sapi_location/tsrc/dev/tlocationprovidertest/src/tconcurrentgetlocation.cpp	Thu Aug 27 07:43:07 2009 +0300
@@ -77,7 +77,7 @@
   
 TInt ConcurrentGetLocCallsL()
 {
-	
+    __UHEAP_MARK ;
 	
 		CActiveScheduler *Scheduler = new CActiveScheduler ;
 
@@ -158,12 +158,13 @@
 	
     TLiwVariant ErrVariant = errparam->Value() ;
     TInt ret = ErrVariant.AsTInt32() ;
-   
+    a.ResetAndDestroy() ;
 	locinterface->Close() ;
 	delete ServiceHandler ;
 	delete InputList ;
 	delete OutParmList ;
 	delete Scheduler ;
+    __UHEAP_MARKEND ;
 	return ret ; // Controll never reaches here
 }