omadmadapters/connmoadapter/src/ProxyBranch.cpp
changeset 67 fdbfe0a95492
parent 45 0f9fc722d255
equal deleted inserted replaced
62:03849bd79877 67:fdbfe0a95492
   145             while ( napChildList.Length() > 0 && status != CSmlDmAdapter::EOk )
   145             while ( napChildList.Length() > 0 && status != CSmlDmAdapter::EOk )
   146                 {
   146                 {
   147                 conRef.Append( _L("NAP/") );
   147                 conRef.Append( _L("NAP/") );
   148                 CUtils::AppendFirstURISeg( napChildList, conRef );
   148                 CUtils::AppendFirstURISeg( napChildList, conRef );
   149                 HBufC8* napLuid = iCallback->GetLuidAllocL( conRef );
   149                 HBufC8* napLuid = iCallback->GetLuidAllocL( conRef );
       
   150                 CleanupStack::PushL(napLuid) ;
   150                 if ( cmId == CUtils::IntLUID( *napLuid ) )
   151                 if ( cmId == CUtils::IntLUID( *napLuid ) )
   151                     {
   152                     {
   152                     status = CSmlDmAdapter::EOk;
   153                     status = CSmlDmAdapter::EOk;
   153                     aLeafObject.InsertL( 0, conRef );
   154                     aLeafObject.InsertL( 0, conRef );
   154                     }
   155                     }
   155                 delete napLuid;
   156                 CleanupStack::PopAndDestroy( napLuid );
   156                 conRef.Delete( 0, conRef.Length() );
   157                 conRef.Delete( 0, conRef.Length() );
   157                 }
   158                 }
   158             }
   159             }
   159         
   160         
   160         CleanupStack::PopAndDestroy( napChildListBuf );
   161         CleanupStack::PopAndDestroy( napChildListBuf );