--- a/webengine/device/src/DeviceLiwPeer.cpp Thu Jul 15 19:53:20 2010 +0300
+++ b/webengine/device/src/DeviceLiwPeer.cpp Thu Aug 19 10:58:56 2010 +0300
@@ -58,12 +58,12 @@
DeviceLiwPeer::~DeviceLiwPeer()
{
delete m_serviceName;
+ m_interface->Close();
+ m_interface = NULL; // in majority cases, the interface close methods delete them selves.
m_callbackArray->ResetAndDestroy();
m_callbackArray->Close();
delete m_callbackArray;
- m_callbackArray = NULL;
- m_interface->Close();
- m_interface = NULL; // in majority cases, the interface close methods delete them selves.
+ m_callbackArray = NULL;
}