mtpfws/mtpfw/src/cmtpframeworkconfig.cpp
changeset 52 866b4af7ffbe
parent 49 c20dd21d1eb4
equal deleted inserted replaced
51:64200268cac2 52:866b4af7ffbe
    42 */
    42 */
    43 CMTPFrameworkConfig::~CMTPFrameworkConfig()
    43 CMTPFrameworkConfig::~CMTPFrameworkConfig()
    44     {
    44     {
    45     //Save the AbnormalDown state to EFalse
    45     //Save the AbnormalDown state to EFalse
    46     const TInt KNormalShutDownValue = 0;
    46     const TInt KNormalShutDownValue = 0;
    47     iRepository->Set(EAbnormalDown, KNormalShutDownValue);
    47     
    48     
    48     if( iRepository )
    49     delete iRepository;
    49     	{
       
    50     	iRepository->Set(EAbnormalDown, KNormalShutDownValue);
       
    51     	delete iRepository;
       
    52     	iRepository = NULL;
       
    53   		}
       
    54     
    50     }
    55     }
    51 
    56 
    52 EXPORT_C void CMTPFrameworkConfig::GetValueL(TParameter aParam, TDes& aValue) const
    57 EXPORT_C void CMTPFrameworkConfig::GetValueL(TParameter aParam, TDes& aValue) const
    53     {
    58     {
    54     TInt err(iRepository->Get(aParam, aValue));
    59     TInt err(iRepository->Get(aParam, aValue));