linklayerprotocols/ethernetnif/EtherPkt/CardCtl.cpp
branchRCL_3
changeset 63 425d8f4f7fa5
parent 12 e9cc36e353d4
child 75 c1029e558ef5
--- a/linklayerprotocols/ethernetnif/EtherPkt/CardCtl.cpp	Wed Sep 01 12:33:58 2010 +0100
+++ b/linklayerprotocols/ethernetnif/EtherPkt/CardCtl.cpp	Wed Sep 15 00:18:51 2010 +0300
@@ -328,8 +328,9 @@
 	
 	User::LeaveIfError(fileSrv.Connect());
 	User::LeaveIfError(macFile.Open(fileSrv,KEtherMacFileName,EFileRead));
+	CleanupClosePushL(macFile);
 	User::LeaveIfError(macFile.Read(macAddress,12));
-	macFile.Close();
+	CleanupStack::PopAndDestroy(&macFile);
 	fileSrv.Close();
 	controlBuf.SetLength(8);	
 	controlBuf[0] = KEthSpeed10BaseT;