equal
deleted
inserted
replaced
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 |