webengine/device/src/DeviceLiwPeer.cpp
branchRCL_3
changeset 93 79859ed3eea9
parent 92 e1bea15f9a39
child 94 919f36ff910f
--- a/webengine/device/src/DeviceLiwPeer.cpp	Thu Aug 19 10:58:56 2010 +0300
+++ b/webengine/device/src/DeviceLiwPeer.cpp	Tue Aug 31 16:17:46 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_callbackArray = NULL;
+    m_interface->Close();
+    m_interface = NULL; // in majority cases, the interface close methods delete them selves.
 }