serviceproviders/sapi_location/tsrc/dev/tlocationprovidertest/src/tgetlocwrongcancel.cpp
equal
deleted
inserted
replaced
51 |
51 |
52 |
52 |
53 |
53 |
54 TInt GetLocWrongCancelL() |
54 TInt GetLocWrongCancelL() |
55 { |
55 { |
|
56 __UHEAP_MARK ; |
56 WrongNotificationGetLoc MyUpdates ; |
57 WrongNotificationGetLoc MyUpdates ; |
57 |
58 |
58 CActiveScheduler *Scheduler = CActiveScheduler :: Current() ; |
59 CActiveScheduler *Scheduler = CActiveScheduler :: Current() ; |
59 |
60 |
60 if(!Scheduler) |
61 if(!Scheduler) |
126 pos = 0; |
127 pos = 0; |
127 |
128 |
128 const TLiwGenericParam *errprm = OutParmList->FindFirst(pos , KErrCode) ; |
129 const TLiwGenericParam *errprm = OutParmList->FindFirst(pos , KErrCode) ; |
129 |
130 |
130 TInt ret = (errprm->Value()).AsTInt32() ; |
131 TInt ret = (errprm->Value()).AsTInt32() ; |
131 |
132 a.ResetAndDestroy() ; |
132 delete Scheduler ; |
133 delete Scheduler ; |
133 |
134 |
134 locinterface->Close(); |
135 locinterface->Close(); |
135 delete InputList ; |
136 delete InputList ; |
136 delete OutParmList ; |
137 delete OutParmList ; |
137 |
138 delete ServiceHandler; |
|
139 __UHEAP_MARKEND ; |
138 if ( SErrNotFound == ret ) |
140 if ( SErrNotFound == ret ) |
139 { |
141 { |
140 return KErrNone; |
142 return KErrNone; |
141 } |
143 } |
142 else |
144 else |