telephonyprotocols/rawipnif/src/Sender.cpp
changeset 49 f50f4094acd7
parent 42 3adadc800673
--- a/telephonyprotocols/rawipnif/src/Sender.cpp	Wed Jun 23 19:32:14 2010 +0300
+++ b/telephonyprotocols/rawipnif/src/Sender.cpp	Tue Jul 06 15:36:38 2010 +0300
@@ -75,10 +75,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()
 /**