srsf/sisrscontrollerplugin/src/sicontrollerplugin.cpp
changeset 1 b13cd05eeb2f
parent 0 bf1d17376201
child 11 6347473a7bb2
equal deleted inserted replaced
0:bf1d17376201 1:b13cd05eeb2f
  3341             if ( iResult != KErrNone )
  3341             if ( iResult != KErrNone )
  3342                 {
  3342                 {
  3343                 RUBY_DEBUG1( "CSIControllerPlugin::RunL. KAddVoiceTags. HandleLoadGrammarL Left with error [%d]", iResult );
  3343                 RUBY_DEBUG1( "CSIControllerPlugin::RunL. KAddVoiceTags. HandleLoadGrammarL Left with error [%d]", iResult );
  3344 
  3344 
  3345                 // Clean up the iTrainArrays
  3345                 // Clean up the iTrainArrays
  3346                 iTrainArrays->ResetAndDestroy();
  3346                 if ( iTrainArrays )
  3347                 iTrainArrays->Close();
  3347                     {
  3348                 delete iTrainArrays;
  3348                     iTrainArrays->ResetAndDestroy();
  3349                 iTrainArrays = NULL;
  3349                     iTrainArrays->Close();
       
  3350                     delete iTrainArrays;
       
  3351                     iTrainArrays = NULL;
       
  3352                     }
  3350                 // Send error message
  3353                 // Send error message
  3351                 iControllerIf.SendSrsEvent( KUidAsrEventAddVoiceTags, iResult );
  3354                 iControllerIf.SendSrsEvent( KUidAsrEventAddVoiceTags, iResult );
  3352                 }
  3355                 }
  3353             iTrainArrays = NULL;                
  3356             iTrainArrays = NULL;                
  3354             break;
  3357             break;