DescriptionFix a potential assert in SpeechRecognizer dtor.
When StopRecognition is invoked and no data was recorded, there is a possibility that the delegate
might release the recognizer within the DidCompleteRecognition callback. So we now perform cleanup
tasks such as freeing the encoder_ object before invoking the delegate. Without this change there
would be an assert in the SpeechRecognizer dtor about encoder_ remaining valid.
BUG=none
TEST=Manual, double-click on the speech button quickly a few times and verify no assert pops up in the dtor.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71994
Patch Set 1 #
Messages
Total messages: 2 (0 generated)
|