metadataengine/client/src/mdeobject.cpp
changeset 31 81125601ee77
parent 28 c461c7fa72c2
child 40 910a23996aa0
equal deleted inserted replaced
28:c461c7fa72c2 31:81125601ee77
   120     self->ConstructL( aUri, aMediaId );
   120     self->ConstructL( aUri, aMediaId );
   121     return self;
   121     return self;
   122 	}
   122 	}
   123 
   123 
   124 CMdEObject::CMdEObject(CMdESession* aSession, TItemId aId, CMdEObjectDef& aDef)
   124 CMdEObject::CMdEObject(CMdESession* aSession, TItemId aId, CMdEObjectDef& aDef)
   125 		: CMdEInstanceItem( aSession, aId ), iDef( &aDef )
   125 		: CMdEInstanceItem( aSession, aId ), iDef( &aDef ), iUri( NULL )
   126 	{
   126 	{
   127 	}
   127 	}
   128 
   128 
   129 void CMdEObject::ConstructL( const TDesC& aUri, TUint32 aMediaId )
   129 void CMdEObject::ConstructL( const TDesC& aUri, TUint32 aMediaId )
   130 	{
   130 	{
   143 		{
   143 		{
   144 		TRAP_IGNORE( Session().CancelObjectL( *this ) );
   144 		TRAP_IGNORE( Session().CancelObjectL( *this ) );
   145 		}
   145 		}
   146 
   146 
   147 	delete iUri;
   147 	delete iUri;
       
   148 	iUri = NULL;
   148 
   149 
   149 	iPropertyArray.ResetAndDestroy();
   150 	iPropertyArray.ResetAndDestroy();
   150 	iPropertyArray.Close();
   151 	iPropertyArray.Close();
   151 
   152 
   152 	iFreeTextArray.ResetAndDestroy();
   153 	iFreeTextArray.ResetAndDestroy();