--- a/bluetoothengine/btnotif/src/BTNInqNotifier.cpp Tue Feb 02 00:20:42 2010 +0200
+++ b/bluetoothengine/btnotif/src/BTNInqNotifier.cpp Fri Apr 16 15:08:36 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"));