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