locationmanager/client/src/rlocationtrail.cpp
changeset 40 910a23996aa0
parent 0 c53acadfccc6
child 63 e538444823de
--- a/locationmanager/client/src/rlocationtrail.cpp	Wed Jul 14 07:57:22 2010 +0300
+++ b/locationmanager/client/src/rlocationtrail.cpp	Fri Jul 23 10:03:59 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 )