diff -r 68159986cd41 -r c210248fa89d serviceproviders/sapi_logging/src/loggingcallback.cpp --- a/serviceproviders/sapi_logging/src/loggingcallback.cpp Wed Mar 31 23:02:09 2010 +0300 +++ b/serviceproviders/sapi_logging/src/loggingcallback.cpp Tue Apr 27 17:33:05 2010 +0300 @@ -427,17 +427,20 @@ } - void LoggingInterfaceCB :: CancelNotifyL( TUint aTransid ) + void LoggingInterfaceCB :: CancelNotifyL( TUint aTransid ,TBool aFlag ) { - CleanupStack :: PushL( this ) ; - CLiwGenericParamList *OutParm = CLiwGenericParamList :: NewL() ; - CleanupStack :: PushL( OutParm ) ; - CLiwGenericParamList *InParm = CLiwGenericParamList :: NewL() ; - CleanupStack :: PushL( InParm ) ; - OutParm->AppendL( TLiwGenericParam( KErrCode , TLiwVariant( ( TInt32 )SErrNone ) ) ) ; - iCallBack->HandleNotifyL( aTransid, KLiwEventCanceled, *OutParm, *InParm ) ; - CleanupStack::PopAndDestroy( InParm ); - CleanupStack::PopAndDestroy( OutParm ); - CleanupStack :: Pop( this ) ; + if(aFlag) + { + CleanupStack :: PushL( this ) ; + CLiwGenericParamList *OutParm = CLiwGenericParamList :: NewL() ; + CleanupStack :: PushL( OutParm ) ; + CLiwGenericParamList *InParm = CLiwGenericParamList :: NewL() ; + CleanupStack :: PushL( InParm ) ; + OutParm->AppendL( TLiwGenericParam( KErrCode , TLiwVariant( ( TInt32 )SErrNone ) ) ) ; + iCallBack->HandleNotifyL( aTransid, KLiwEventCanceled, *OutParm, *InParm ) ; + CleanupStack::PopAndDestroy( InParm ); + CleanupStack::PopAndDestroy( OutParm ); + CleanupStack :: Pop( this ) ; + } delete this; }