notepad/notepad1/LibSrc/NpdListDialog.cpp
branchRCL_3
changeset 78 356f28cd5ca0
parent 66 bd7edf625bdd
child 86 ed599363c2d7
equal deleted inserted replaced
74:97232defd20e 78:356f28cd5ca0
   105 // (caused by RemoveFromStack).
   105 // (caused by RemoveFromStack).
   106 // -----------------------------------------------------------------------------
   106 // -----------------------------------------------------------------------------
   107 //
   107 //
   108 EXPORT_C CNotepadListDialog::~CNotepadListDialog()
   108 EXPORT_C CNotepadListDialog::~CNotepadListDialog()
   109     {
   109     {
       
   110     if ( iServiceHandler )
       
   111         {
       
   112         delete iServiceHandler;
       
   113         iServiceHandler = NULL;
       
   114         }
   110     delete iIdle;
   115     delete iIdle;
   111     delete iProgressDialog; // *1*
   116     delete iProgressDialog; // *1*
   112     delete iEditorDialog;
   117     delete iEditorDialog;
   113     if ( iFlags & ENotepadObserveView )
   118     if ( iFlags & ENotepadObserveView )
   114         {
   119         {
   117     delete iModel;
   122     delete iModel;
   118     delete iSendUi;
   123     delete iSendUi;
   119     iSavedSelectedKeys.Close();
   124     iSavedSelectedKeys.Close();
   120     iSavedKeysAboveCurrent.Close();
   125     iSavedKeysAboveCurrent.Close();
   121     delete iEnvironmentChangeNotifier;
   126     delete iEnvironmentChangeNotifier;
   122     if ( iServiceHandler )
       
   123     	{
       
   124     	    	
       
   125 		delete iServiceHandler;
       
   126 		iServiceHandler = NULL;
       
   127     	}
       
   128     }
   127     }
   129 
   128 
   130 // -----------------------------------------------------------------------------
   129 // -----------------------------------------------------------------------------
   131 // CNotepadListDialog::EditByKeyL
   130 // CNotepadListDialog::EditByKeyL
   132 // Called from CNotepadAppUi.
   131 // Called from CNotepadAppUi.