webengine/device/src/DeviceLiwPeer.cpp
branchRCL_3
changeset 47 e1bea15f9a39
parent 10 a359256acfc6
child 48 79859ed3eea9
--- 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;    
 }