diff -r 4255033c5d30 -r 988cddd6adbd bluetoothengine/btnotif/src/BTNInqNotifier.cpp --- a/bluetoothengine/btnotif/src/BTNInqNotifier.cpp Fri Apr 23 23:23:50 2010 +0300 +++ b/bluetoothengine/btnotif/src/BTNInqNotifier.cpp Fri Apr 23 23:38:44 2010 +0300 @@ -59,6 +59,7 @@ { FLOG(_L("[BTNOTIF]\t CBTInqNotifier::~CBTInqNotifier()")); delete iUi; + iUi = NULL; FLOG(_L("[BTNOTIF]\t CBTInqNotifier::~CBTInqNotifier() completed")); } @@ -84,7 +85,7 @@ { FLOG(_L("[BTNOTIF]\t CBTInqNotifier::GetParamsL()")); - if( iUi || iReplySlot!=NULL || !iMessage.IsNull() ) + if( !iMessage.IsNull() ) { aMessage.Complete(KErrInUse); return; @@ -124,6 +125,8 @@ if( iUi ) { iUi->Cancel(); + delete iUi; + iUi = NULL; } CBTNotifierBase::Cancel(); FLOG(_L("[BTNOTIF]\t CBTInqNotifier::Cancel() completed"));