locationmanager/locationtrail/src/ctracklog.cpp
changeset 40 910a23996aa0
parent 21 50bf9db68373
child 43 c5e73110f733
--- a/locationmanager/locationtrail/src/ctracklog.cpp	Wed Jul 14 07:57:22 2010 +0300
+++ b/locationmanager/locationtrail/src/ctracklog.cpp	Fri Jul 23 10:03:59 2010 +0300
@@ -68,6 +68,7 @@
 EXPORT_C CTrackLog::~CTrackLog()
 	{
 	delete iGpxConverter;
+	iGpxConverter = NULL;
 	iFs.Close();
 	}
 
@@ -201,6 +202,7 @@
 				if ( err == KErrNone )
 					{
 					delete lastCoords;
+					lastCoords = NULL;
 					lastCoords = new TCoordinate( aTrailItem.iLocationData.iPosition );
 					iBoundaries->distance += distance;
 					}
@@ -306,7 +308,9 @@
 			}
 		}
 	delete filename;
+	filename = NULL;
 	delete files;
+	files = NULL;
 	}
 
 void CTrackLog::ReadCenRepValueL(TInt aKey, TInt& aValue)