btobexprofiles/obexserviceman/utils/src/obexutilsmessagehandler.cpp
changeset 52 4545c04e61e1
parent 41 0b2439c3e397
--- a/btobexprofiles/obexserviceman/utils/src/obexutilsmessagehandler.cpp	Tue Jul 06 14:27:09 2010 +0300
+++ b/btobexprofiles/obexserviceman/utils/src/obexutilsmessagehandler.cpp	Wed Aug 18 09:59:05 2010 +0300
@@ -54,6 +54,8 @@
 
 const TInt KObexUtilsMaxCharToFromField = 256;
 
+const TInt32 KUidMsgTypeBtTInt32 = 0x10009ED5;
+
 // ============================= LOCAL FUNCTIONS ===============================
 
 // -----------------------------------------------------------------------------
@@ -303,6 +305,7 @@
     parentTEntry.iMtm = KUidBIOMessageTypeMtm;
     parentTEntry.iServiceId = KMsvLocalServiceIndexEntryId;  
     parentTEntry.iBioType = aBioMsgId.iUid;
+    parentTEntry.iMtmData1 = KUidMsgTypeBtTInt32;
     parentTEntry.iDescription.Set(aBioDB->BifReader(index).Description());
     parentEntry->ChangeL(parentTEntry);
     
@@ -342,11 +345,13 @@
     TPtrC mimeType16(buf16->Des());
     CleanupStack::PopAndDestroy();   //   buf16
     
-    CUpdateMusicCollection* updateMusicCollection = CUpdateMusicCollection::NewL() ;
+    CUpdateMusicCollection* updateMusicCollection = CUpdateMusicCollection::NewL();
+    CleanupStack::PushL(updateMusicCollection);    
     if (updateMusicCollection->isSupported(mimeType16))
         {
         updateMusicCollection->addToCollectionL(aFileName);
         }
+    CleanupStack::PopAndDestroy();  // updateMusicCollection
     
     aAttachInfo->SetMimeTypeL( mimeType );