diff -r 0b68a1b0c15e -r a9c0808a1095 serviceproviders/sapi_logging/src/loggingcallback.cpp --- a/serviceproviders/sapi_logging/src/loggingcallback.cpp Tue Aug 31 16:06:03 2010 +0300 +++ b/serviceproviders/sapi_logging/src/loggingcallback.cpp Wed Sep 01 12:28:47 2010 +0100 @@ -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; }