diff -r aba6b8104af3 -r 51c0f5edf5ef appinstaller/AppMngr2/src/appmngr2filerecognizer.cpp --- a/appinstaller/AppMngr2/src/appmngr2filerecognizer.cpp Tue Feb 02 00:20:15 2010 +0200 +++ b/appinstaller/AppMngr2/src/appmngr2filerecognizer.cpp Fri Feb 19 22:57:02 2010 +0200 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of "Eclipse Public License v1.0" @@ -200,10 +200,10 @@ HBufC* mimeType = HBufC::NewLC( KMaxDataTypeLength ); TPtr mimePtr( mimeType->Des() ); - content->GetStringAttribute( ContentAccess::EMimeType, mimePtr ); - + User::LeaveIfError( content->GetStringAttribute( ContentAccess::EMimeType, mimePtr ) ); + CAppMngr2RecognizedFile* recFile = CAppMngr2RecognizedFile::NewL( fullName, mimeType ); - CleanupStack::Pop( mimeType ); + CleanupStack::Pop( mimeType ); // CAppMngr2RecognizedFile takes ownership CleanupStack::PopAndDestroy( content ); CleanupStack::Pop( fullName );