diff -r 5fb7af913dfd -r a828660c511c wlan_bearer/wlannwif/etherpkt/CardDll.cpp --- 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 @@ -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 ); }