locationmanager/client/src/rlocationtrail.cpp
changeset 54 a3cc46f37772
parent 0 c53acadfccc6
child 63 e538444823de
--- a/locationmanager/client/src/rlocationtrail.cpp	Tue Jul 06 14:44:37 2010 +0300
+++ b/locationmanager/client/src/rlocationtrail.cpp	Fri Sep 17 16:54:49 2010 +0300
@@ -31,6 +31,7 @@
 EXPORT_C RLocationTrail::~RLocationTrail()
 	{
 	delete iCurrentLocData;
+	iCurrentLocData = NULL;
 	}
 
 // --------------------------------------------------------------------------
@@ -148,6 +149,7 @@
     LOG( "RLocationTrail::CurrentLocation(), begin" );
     
     delete iCurrentLocData;
+    iCurrentLocData = NULL;
     iCurrentLocData = new TPckg<TLocationData>( aLocationData );
     
     if ( iHandle && iCurrentLocData )