locationmanager/client/src/rlocationobjectmanipulator.cpp
changeset 45 a93990e5815e
parent 21 50bf9db68373
child 63 e538444823de
equal deleted inserted replaced
36:aa5a574040a4 45:a93990e5815e
   112         {
   112         {
   113         CompleteRequest( aStatus, KErrDisconnected );
   113         CompleteRequest( aStatus, KErrDisconnected );
   114         }
   114         }
   115     
   115     
   116     delete paramBuf;
   116     delete paramBuf;
       
   117     paramBuf = NULL;
   117 	LOG( "RLocationObject::CopyLocationData end" );
   118 	LOG( "RLocationObject::CopyLocationData end" );
   118 	}
   119 	}
   119 // --------------------------------------------------------------------------
   120 // --------------------------------------------------------------------------
   120 // RLocationObjectManipulator::CopyLocationData
   121 // RLocationObjectManipulator::CopyLocationData
   121 // --------------------------------------------------------------------------
   122 // --------------------------------------------------------------------------
   144     
   145     
   145     if( error != KErrNone )
   146     if( error != KErrNone )
   146         {
   147         {
   147         LOG( "RLocationObject::CopyLocationData CMdCSerializationBuffer creation failed" );
   148         LOG( "RLocationObject::CopyLocationData CMdCSerializationBuffer creation failed" );
   148         delete uriBuffer;
   149         delete uriBuffer;
       
   150         uriBuffer = NULL;
   149         CompleteRequest( aStatus, error );
   151         CompleteRequest( aStatus, error );
   150         return;
   152         return;
   151         }
   153         }
   152 
   154 
   153     for( TInt i = uriCount - 1; i >=0; i-- )
   155     for( TInt i = uriCount - 1; i >=0; i-- )
   175         {
   177         {
   176         CompleteRequest( aStatus, KErrDisconnected );
   178         CompleteRequest( aStatus, KErrDisconnected );
   177         }
   179         }
   178     
   180     
   179     delete uriBuffer;
   181     delete uriBuffer;
       
   182     uriBuffer = NULL;
   180     LOG( "RLocationObject::CopyLocationData end" );
   183     LOG( "RLocationObject::CopyLocationData end" );
   181 	}
   184 	}
   182 
   185