psmservices/psmserver/src/client/psmclientimpl.cpp
branchRCL_3
changeset 8 8d1d8440b626
parent 0 4e1aa6a622a0
child 21 ccb4f6b3db21
equal deleted inserted replaced
7:1fc153c72b60 8:8d1d8440b626
     1 /*
     1 /*
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    62 //
    62 //
    63 CPsmClientImpl::~CPsmClientImpl()
    63 CPsmClientImpl::~CPsmClientImpl()
    64     {
    64     {
    65     COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::~CPsmClientImpl()" ) ) );
    65     COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::~CPsmClientImpl()" ) ) );
    66 
    66 
    67     if ( iActive->IsActive() )
    67     CancelPowerSaveModeChange();
    68         {
       
    69         CancelPowerSaveModeChange();
       
    70         }
       
    71 
    68 
    72     if ( iActive )
    69     delete iActive;
    73         {
    70     delete iSettings;
    74         delete iActive;
       
    75         iActive = NULL;
       
    76         }
       
    77 
       
    78     if ( iSettings )
       
    79         {
       
    80         delete iSettings;
       
    81         iSettings = NULL;
       
    82         }
       
    83 
    71 
    84     iPsmServer.Close();
    72     iPsmServer.Close();
    85 
    73 
    86     COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::~CPsmClientImpl - return" ) ) );
    74     COMPONENT_TRACE( ( _L( "PSM Client - CPsmClientImpl::~CPsmClientImpl - return" ) ) );
    87     }
    75     }