phonecmdhandler/phonecmdhnlr/src/phonehandlercontrol.cpp
changeset 53 25b8d29b7c59
parent 33 8d5d7fcf9b59
--- a/phonecmdhandler/phonecmdhnlr/src/phonehandlercontrol.cpp	Mon Oct 04 15:57:13 2010 +0300
+++ b/phonecmdhandler/phonecmdhnlr/src/phonehandlercontrol.cpp	Fri Oct 15 13:21:28 2010 +0300
@@ -133,21 +133,10 @@
 CPhoneHandlerControl::~CPhoneHandlerControl()
     {
     COM_TRACE_( "[PHONECMDHANDLER] CPhoneHandlerControl::~CPhoneHandlerControl() start" );
-    
-    if( iInterfaceSelector )
-        {
-        delete iInterfaceSelector;
-        }
-    
-    if( iResponse )
-        {
-        iResponse->Delete();
-        }
-        
-    if( iCallStateObserver )
-        {
-        delete iCallStateObserver;
-        }
+
+    delete iInterfaceSelector; // deletes iTarget
+    delete iResponse;
+    delete iCallStateObserver;
             
     COM_TRACE_( "[PHONECMDHANDLER] CPhoneHandlerControl::~CPhoneHandlerControl() end" );
     }