webengine/device/src/DeviceLiwPeer.cpp
branchRCL_3
changeset 94 919f36ff910f
parent 93 79859ed3eea9
--- a/webengine/device/src/DeviceLiwPeer.cpp	Tue Aug 31 16:17:46 2010 +0300
+++ b/webengine/device/src/DeviceLiwPeer.cpp	Wed Sep 01 12:28:30 2010 +0100
@@ -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;    
 }