networkcontrol/ipnetworklayer/src/ipprotodeftscpr.cpp
branchRCL_3
changeset 20 7e41d162e158
parent 19 3652a10b304a
child 21 abbed5a4b42a
equal deleted inserted replaced
19:3652a10b304a 20:7e41d162e158
    21 */
    21 */
    22 
    22 
    23 
    23 
    24 #include <comms-infras/corescprstates.h>
    24 #include <comms-infras/corescprstates.h>
    25 #include <comms-infras/corescpractivities.h>
    25 #include <comms-infras/corescpractivities.h>
    26 #include "ipprotocprstates.h"
    26 #include "IPProtoCprStates.h"
    27 
    27 
    28 #include "ipprotodeftscpr.h"
    28 #include "ipprotodeftscpr.h"
    29 #include "ipprotodeftscprstates.h"
    29 #include "ipprotodeftscprstates.h"
    30 #include <comms-infras/linkmessages.h>		// for TLinkMessage
    30 #include <comms-infras/linkmessages.h>		// for TLinkMessage
    31 #include <comms-infras/ss_msgintercept.h>
    31 #include <comms-infras/ss_msgintercept.h>
   200            delete iNotify;
   200            delete iNotify;
   201            iNotify = NULL;
   201            iNotify = NULL;
   202            }
   202            }
   203        }
   203        }
   204 	if (iControl)
   204 	if (iControl)
   205 		delete iControl;
   205 		iControl->AsyncDelete();
       
   206 	
   206 	//incase registration is successful and Network is configured. 
   207 	//incase registration is successful and Network is configured. 
   207 	if (iNotify)
   208 	if (iNotify)
   208 	    {
   209 	    {
   209 		delete iNotify;
   210 		delete iNotify;
   210 		iNotify = NULL;
   211 		iNotify = NULL;