wlan_bearer/wlannwif/etherpkt/CardDll.cpp
changeset 41 8e0a221dc349
parent 30 7d966ab5304a
--- a/wlan_bearer/wlannwif/etherpkt/CardDll.cpp	Fri Jul 02 13:43:20 2010 +0300
+++ b/wlan_bearer/wlannwif/etherpkt/CardDll.cpp	Mon Aug 16 17:58:10 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: 13 %
+* %version: 14 %
 */
 
 #include <nifmbuf.h>
@@ -81,8 +81,12 @@
     iReceiver = CReceiver::NewL( this );
 
     User::LeaveIfError( iCard.Open() );
+    
+    CleanupClosePushL( iCard );
 
     User::LeaveIfError( iCard.InitialiseBuffers() );
+    
+    CleanupStack::Pop( &iCard );
   }