homescreenpluginsrv/hspsodt/src/hspsodt.cpp
changeset 3 ff572005ac23
parent 0 79c6a41cd166
child 11 bd874ee5e5e2
equal deleted inserted replaced
2:b7904b40483f 3:ff572005ac23
   448         }
   448         }
   449 	// stream in the resource list
   449 	// stream in the resource list
   450 	TInt count = aStream.ReadInt32L();
   450 	TInt count = aStream.ReadInt32L();
   451 	for (TInt i=0;i<count;i++)
   451 	for (TInt i=0;i<count;i++)
   452 		{
   452 		{
   453 		ChspsResource* resource = ChspsResource::NewL();
   453         ChspsResource* resource = ChspsResource::NewL();
   454        	CleanupStack::PushL(resource);
   454         CleanupStack::PushL(resource);
   455        	resource->InternalizeL(aStream);
   455         resource->InternalizeL(aStream);
   456        	iResourceList->AppendL( resource );
   456        	if ( iResourceList )
   457        	CleanupStack::Pop( resource ); // now owned by array
   457        	    {
   458        	resource = NULL;
   458        	    iResourceList->AppendL( resource );
       
   459        	    }
       
   460         CleanupStack::Pop( resource ); // now owned by array
       
   461         resource = NULL;
   459 		}
   462 		}
   460     }
   463     }
   461 
   464 
   462 
   465 
   463 // -----------------------------------------------------------------------------
   466 // -----------------------------------------------------------------------------
   720         }
   723         }
   721     if( iPackageVersion )
   724     if( iPackageVersion )
   722         {
   725         {
   723         clone->SetPackageVersionL( *iPackageVersion );
   726         clone->SetPackageVersionL( *iPackageVersion );
   724         }
   727         }
       
   728     if( iDescription )
       
   729         {
       
   730         clone->SetDescriptionL( *iDescription );
       
   731         }
   725     clone->SetOdtLanguage( iLanguage );
   732     clone->SetOdtLanguage( iLanguage );
   726     clone->SetFlags( iFlags );
   733     clone->SetFlags( iFlags );
   727           
   734           
   728     TInt resourceCount = iResourceList->Count();
   735     TInt resourceCount = iResourceList->Count();
   729 
   736