--- a/mpxmusicplayer/commonui/src/mpxalbumartutil.cpp Fri Mar 12 15:42:25 2010 +0200
+++ b/mpxmusicplayer/commonui/src/mpxalbumartutil.cpp Mon Mar 15 12:40:11 2010 +0200
@@ -317,20 +317,18 @@
{
CThumbnailObjectSource* source = CThumbnailObjectSource::NewLC( album, KMPXAlbumMimeType );
TInt ret = NULL;
- TInt err = KErrNone;
- if(iThumbnailManager )
+ if(iThumbnailManager && iReqId >0)
{
- if(iReqId >0)
- {
- iThumbnailManager->CancelRequest( iReqId );
- }
- TRAP(err, iReqId = TInt (iThumbnailManager->GetThumbnailL( *source, (TAny*)ret)));
- }
-
- if( err != KErrNone)
- {
- User::Leave( KErrNotFound );
- }
+ iThumbnailManager->CancelRequest( iReqId );
+ }
+ if(iThumbnailManager)
+ {
+ TRAPD(err, iReqId = TInt (iThumbnailManager->GetThumbnailL( *source, (TAny*)ret)));
+ if( err != KErrNone)
+ {
+ User::Leave( KErrNotFound );
+ }
+ }
CleanupStack::PopAndDestroy( source );
}
}