telephonyprotocols/rawipnif/src/Sender.cpp
branchRCL_3
changeset 17 1ac40e087278
parent 7 fe8b59ab9fa0
child 19 630d2f34d719
--- a/telephonyprotocols/rawipnif/src/Sender.cpp	Mon Jun 21 16:59:31 2010 +0300
+++ b/telephonyprotocols/rawipnif/src/Sender.cpp	Thu Jul 15 19:58:53 2010 +0300
@@ -72,10 +72,13 @@
 /**
  * Destructor.
  */
-	{
-	iSendBuffer.Close();
-	Cancel();
-	}
+    {
+    Cancel();
+    // iSendBuffer is a shared bit of memory between raw ip and bca
+    // you cannot delete it while bca might be using it otherwise
+    // bad things may happen.
+    iSendBuffer.Close();
+    }
 
 void CSender::RunL()
 /**