bluetoothappprofiles/avrcp/mediabrowseapi/src/remconmediabrowsetargetbase.cpp
branchRCL_3
changeset 14 2f88a7d66f50
parent 1 6a1fe72036e3
equal deleted inserted replaced
12:b23265fb36da 14:2f88a7d66f50
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    71 	iNullIterator(iNullArray),
    71 	iNullIterator(iNullArray),
    72 	iSearchInProgress(EFalse)
    72 	iSearchInProgress(EFalse)
    73 	{
    73 	{
    74 	}
    74 	}
    75 
    75 
    76 CRemConMediaBrowseTargetBase::~CRemConMediaBrowseTargetBase()
    76 CRemConMediaBrowseTargetBase::~CRemConMediaBrowseTargetBase()		// codescanner::destructor
    77 	{
    77 	{
    78 	iMediaAttributeIds.Close();
    78 	iMediaAttributeIds.Close();
    79 	iNullArray.Close();
    79 	iNullArray.Close();
    80 	iOutBuf.Close();
    80 	iOutBuf.Close();
    81 	iSearchString.Close();
    81 	iSearchString.Close();
       
    82 
       
    83 	// iGetPathResponse, iGiaResponse and iGflResponse are instantiated in CRemConMediaBrowseTargetBase::BaseConstructL() and
       
    84 	// so should have the same lifetime as this CRemConMediaBrowseTargetBase instance
       
    85 	__ASSERT_DEBUG(iGetPathResponse && iGiaResponse && iGflResponse, MediaBrowsePanic::Panic(EUnexpectedNullMemberField));
    82 	iGetPathResponse->Close();
    86 	iGetPathResponse->Close();
    83 	iGiaResponse->Close();
    87 	iGiaResponse->Close();
    84 	iGflResponse->Close();
    88 	iGflResponse->Close();
    85 	delete iGetPathResponse;
    89 	delete iGetPathResponse;
    86 	delete iGiaResponse;
    90 	delete iGiaResponse;