webengine/device/src/DeviceLiwPeer.cpp
branchRCL_3
changeset 92 e1bea15f9a39
parent 16 a359256acfc6
child 93 79859ed3eea9
equal deleted inserted replaced
91:30342f40acbf 92:e1bea15f9a39
    56 // ============================================================================
    56 // ============================================================================
    57 //
    57 //
    58 DeviceLiwPeer::~DeviceLiwPeer()
    58 DeviceLiwPeer::~DeviceLiwPeer()
    59 {
    59 {
    60     delete m_serviceName;
    60     delete m_serviceName;
       
    61     m_interface->Close();
       
    62     m_interface = NULL; // in majority cases, the interface close methods delete them selves.    
    61     m_callbackArray->ResetAndDestroy();
    63     m_callbackArray->ResetAndDestroy();
    62     m_callbackArray->Close();
    64     m_callbackArray->Close();
    63     delete m_callbackArray;
    65     delete m_callbackArray;
    64     m_callbackArray = NULL;
    66     m_callbackArray = NULL;    
    65     m_interface->Close();
       
    66     m_interface = NULL; // in majority cases, the interface close methods delete them selves.
       
    67 }
    67 }
    68 
    68 
    69 
    69 
    70 // ============================================================================
    70 // ============================================================================
    71 // DeviceLiwPeer::SetServiceNameL
    71 // DeviceLiwPeer::SetServiceNameL