telephonyprotocols/rawipnif/src/Receiver.cpp
branchRCL_3
changeset 60 1ac40e087278
parent 27 4284d6390a82
child 65 630d2f34d719
--- a/telephonyprotocols/rawipnif/src/Receiver.cpp	Mon Jun 21 16:59:31 2010 +0300
+++ b/telephonyprotocols/rawipnif/src/Receiver.cpp	Thu Jul 15 19:58:53 2010 +0300
@@ -71,10 +71,13 @@
 /**
  * Destructor.
  */
-	{
-	iData.Close();
-	Cancel();
-	}
+    {
+    Cancel();
+    // iData 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.
+    iData.Close();
+    }
 
 void CReceiver::RunL()
 /**