--- a/locationmanager/locationtrail/src/ctracklog.cpp Fri Jul 23 10:03:59 2010 +0300
+++ b/locationmanager/locationtrail/src/ctracklog.cpp Fri Aug 06 09:56:02 2010 +0300
@@ -223,6 +223,8 @@
RFile64 file;
RFileWriteStream writer;
+ CleanupClosePushL( writer );
+
TInt err;
err = file.Open( iFs, iTmpFileName, EFileRead );
if ( err != KErrNone )
@@ -249,8 +251,6 @@
writer.Sink()->SeekL( MStreamBuf::EWrite, TStreamPos( endpos ));
}
- CleanupClosePushL( writer );
-
TInt count = iTrackLogItemArray.Count();
for( TInt i = 0; i < count; i++ )