serviceproviders/sapi_location/tsrc/dev/tlocationprovidertest/src/ttracelocwrongcancel.cpp
equal
deleted
inserted
replaced
51 |
51 |
52 |
52 |
53 |
53 |
54 TInt TraceLocWrongCancelL() |
54 TInt TraceLocWrongCancelL() |
55 { |
55 { |
|
56 __UHEAP_MARK ; |
56 WrongNotificationTraceLoc MyUpdates ; |
57 WrongNotificationTraceLoc MyUpdates ; |
57 |
58 |
58 |
59 |
59 CActiveScheduler *Scheduler = CActiveScheduler :: Current() ; |
60 CActiveScheduler *Scheduler = CActiveScheduler :: Current() ; |
60 |
61 |
132 |
133 |
133 const TLiwGenericParam *errprm = OutParmList->FindFirst(pos , KErrCode) ; |
134 const TLiwGenericParam *errprm = OutParmList->FindFirst(pos , KErrCode) ; |
134 |
135 |
135 TInt ret = (errprm->Value()).AsTInt32() ; |
136 TInt ret = (errprm->Value()).AsTInt32() ; |
136 |
137 |
137 delete Scheduler ; |
138 locinterface->Close(); |
|
139 delete Scheduler ; |
138 |
140 |
139 locinterface->Close(); |
141 a.ResetAndDestroy(); |
|
142 |
140 delete InputList ; |
143 delete InputList ; |
141 delete OutParmList ; |
144 delete OutParmList ; |
142 |
145 delete ServiceHandler; |
143 if ( SErrNotFound == ret ) |
146 if ( SErrNotFound == ret ) |
144 { |
147 { |
145 return KErrNone; |
148 return KErrNone; |
146 } |
149 } |
|
150 __UHEAP_MARKEND ; |
147 return ret ; |
151 return ret ; |
148 } |
152 } |
149 |
153 |
150 |
154 |
151 |
155 |