wlan_bearer/wlannwif/etherpkt/CardDll.cpp
branchRCL_3
changeset 42 a828660c511c
parent 0 c40eb8fe8501
child 43 d3d7683d16f5
--- a/wlan_bearer/wlannwif/etherpkt/CardDll.cpp	Thu Aug 19 11:40:48 2010 +0300
+++ b/wlan_bearer/wlannwif/etherpkt/CardDll.cpp	Tue Aug 31 17:02:06 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
@@ -16,7 +16,7 @@
 */
 
 /*
-* %version: 12 %
+* %version: 14 %
 */
 
 #include <nifmbuf.h>
@@ -81,8 +81,12 @@
     iReceiver = CReceiver::NewL( this );
 
     User::LeaveIfError( iCard.Open() );
+    
+    CleanupClosePushL( iCard );
 
-    User::LeaveIfError( iCard.InitialiseBuffers( iFrameXferBlock ) );
+    User::LeaveIfError( iCard.InitialiseBuffers() );
+    
+    CleanupStack::Pop( &iCard );
   }