bluetoothengine/btmac/src/btmonobearer/bmbcmdlistener.cpp
branchRCL_3
changeset 54 0ba996a9b75d
parent 1 6a1fe72036e3
child 72 4b59561a31c0
--- a/bluetoothengine/btmac/src/btmonobearer/bmbcmdlistener.cpp	Thu Jul 15 18:50:18 2010 +0300
+++ b/bluetoothengine/btmac/src/btmonobearer/bmbcmdlistener.cpp	Thu Aug 19 10:05:41 2010 +0300
@@ -35,6 +35,7 @@
    	Cancel();
    	iATCmdProperty.Close();
    	iATRespProperty.Close();
+   	iAtCmdBuf.Close();
     }
 
 // ---------------------------------------------------------------------------
@@ -60,6 +61,7 @@
 	TRACE_FUNC
     LEAVE_IF_ERROR(iATCmdProperty.Attach(KPSUidBluetoothEnginePrivateCategory, KBTHfpATCommand));
 	LEAVE_IF_ERROR(iATRespProperty.Attach(KPSUidBluetoothEnginePrivateCategory, KBTHfpATResponse));
+	iAtCmdBuf.CreateL(KDefaultCmdBufLength);
 	Subscribe();
     }