--- a/locationmanager/locationtrail/src/cgpxconverterao.cpp Mon Mar 15 12:42:24 2010 +0200
+++ b/locationmanager/locationtrail/src/cgpxconverterao.cpp Wed Mar 31 22:19:07 2010 +0300
@@ -70,6 +70,12 @@
iObservers.Reset();
+ iFileQueue.ResetAndDestroy();
+ iFileQueue.Close();
+
+ iBoundQueue.ResetAndDestroy();
+ iBoundQueue.Close();
+
delete iWriteBuf;
delete iFormatBuf;
}
@@ -105,8 +111,10 @@
{
LOG("CGpxConverterAO::AddToQueueL");
TFileName *filename = new (ELeave) TFileName(aFileName);
- iFileQueue.Append(filename);
- iBoundQueue.Append( aBoundaries );
+ CleanupStack::PushL( filename );
+ iFileQueue.AppendL( filename );
+ CleanupStack::Pop( filename );
+ iBoundQueue.AppendL( aBoundaries );
if ( iState == EIdle )
{