linklayerprotocols/ethernetnif/EtherPkt/CardCtl.cpp
branchRCL_3
changeset 75 c1029e558ef5
parent 63 425d8f4f7fa5
--- a/linklayerprotocols/ethernetnif/EtherPkt/CardCtl.cpp	Wed Sep 15 13:53:10 2010 +0300
+++ b/linklayerprotocols/ethernetnif/EtherPkt/CardCtl.cpp	Wed Oct 13 16:17:27 2010 +0300
@@ -328,9 +328,8 @@
 	
 	User::LeaveIfError(fileSrv.Connect());
 	User::LeaveIfError(macFile.Open(fileSrv,KEtherMacFileName,EFileRead));
-	CleanupClosePushL(macFile);
 	User::LeaveIfError(macFile.Read(macAddress,12));
-	CleanupStack::PopAndDestroy(&macFile);
+	macFile.Close();
 	fileSrv.Close();
 	controlBuf.SetLength(8);	
 	controlBuf[0] = KEthSpeed10BaseT;