locationmanager/client/src/rlocationtrail.cpp
branchRCL_3
changeset 19 b73252188534
parent 0 c53acadfccc6
equal deleted inserted replaced
18:63c982fb92f2 19:b73252188534
    29 	}
    29 	}
    30 
    30 
    31 EXPORT_C RLocationTrail::~RLocationTrail()
    31 EXPORT_C RLocationTrail::~RLocationTrail()
    32 	{
    32 	{
    33 	delete iCurrentLocData;
    33 	delete iCurrentLocData;
       
    34 	iCurrentLocData = NULL;
    34 	}
    35 	}
    35 
    36 
    36 // --------------------------------------------------------------------------
    37 // --------------------------------------------------------------------------
    37 // RLocationTrail::StartLocationTrail
    38 // RLocationTrail::StartLocationTrail
    38 // --------------------------------------------------------------------------
    39 // --------------------------------------------------------------------------
   146 											   TLocationData& aLocationData )
   147 											   TLocationData& aLocationData )
   147     {
   148     {
   148     LOG( "RLocationTrail::CurrentLocation(), begin" );
   149     LOG( "RLocationTrail::CurrentLocation(), begin" );
   149     
   150     
   150     delete iCurrentLocData;
   151     delete iCurrentLocData;
       
   152     iCurrentLocData = NULL;
   151     iCurrentLocData = new TPckg<TLocationData>( aLocationData );
   153     iCurrentLocData = new TPckg<TLocationData>( aLocationData );
   152     
   154     
   153     if ( iHandle && iCurrentLocData )
   155     if ( iHandle && iCurrentLocData )
   154         {
   156         {
   155         SendReceive( ELocManCurrentLoc, TIpcArgs( iCurrentLocData ), aStatus );
   157         SendReceive( ELocManCurrentLoc, TIpcArgs( iCurrentLocData ), aStatus );