equal
deleted
inserted
replaced
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; |