Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4559)

Unified Diff: chrome/renderer/tts_dispatcher.cc

Issue 14813033: Don't forget to call RemoveObserver when TtsDispatcher is destroyed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/tts_dispatcher.cc
diff --git a/chrome/renderer/tts_dispatcher.cc b/chrome/renderer/tts_dispatcher.cc
index 0ca8c878ca0e057bcfae9188a56a5598ff017f78..899da6cd2c5d7c4792d00ecc6a8915dacdc36ae0 100644
--- a/chrome/renderer/tts_dispatcher.cc
+++ b/chrome/renderer/tts_dispatcher.cc
@@ -30,6 +30,7 @@ TtsDispatcher::TtsDispatcher(WebSpeechSynthesizerClient* client)
}
TtsDispatcher::~TtsDispatcher() {
+ RenderThread::Get()->RemoveObserver(this);
}
bool TtsDispatcher::OnControlMessageReceived(const IPC::Message& message) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698