controlpanelui/src/tonefetcher/tonefetcherengine/private/CToneSelection.cpp
changeset 41 ab0490982943
parent 29 313976a11e23
equal deleted inserted replaced
36:2fee987ebaff 41:ab0490982943
   255             CMdEProperty* property = 0;
   255             CMdEProperty* property = 0;
   256             TInt err = object->Property( propDef, property, 0 );
   256             TInt err = object->Property( propDef, property, 0 );
   257             if ( err != KErrNotFound && property )
   257             if ( err != KErrNotFound && property )
   258                 {            
   258                 {            
   259                 HBufC* songUri = HBufC::NewL( object->Uri().Length() );
   259                 HBufC* songUri = HBufC::NewL( object->Uri().Length() );
       
   260                 CleanupStack::PushL(songUri);
   260                 TPtr ptr = songUri->Des();
   261                 TPtr ptr = songUri->Des();
   261                 ptr.Copy( object->Uri() );
   262                 ptr.Copy( object->Uri() );
   262                 iResultArray.AppendL( songUri );
   263                 iResultArray.AppendL( songUri );
       
   264                 CleanupStack::Pop( songUri );
   263                 }
   265                 }
   264             CleanupStack::PopAndDestroy( object );
   266             CleanupStack::PopAndDestroy( object );
   265             }
   267             }
   266         iToneSelectionWatcher->HandleQueryComplete( iResultArray );     
   268         iToneSelectionWatcher->HandleQueryComplete( iResultArray );     
   267         }
   269         }