summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/speech/testing/platform_speech_synthesizer_mock.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/speech/testing/platform_speech_synthesizer_mock.cc')
-rw-r--r--chromium/third_party/blink/renderer/modules/speech/testing/platform_speech_synthesizer_mock.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chromium/third_party/blink/renderer/modules/speech/testing/platform_speech_synthesizer_mock.cc b/chromium/third_party/blink/renderer/modules/speech/testing/platform_speech_synthesizer_mock.cc
index c0feb2071e0..5d9830ec7c3 100644
--- a/chromium/third_party/blink/renderer/modules/speech/testing/platform_speech_synthesizer_mock.cc
+++ b/chromium/third_party/blink/renderer/modules/speech/testing/platform_speech_synthesizer_mock.cc
@@ -35,7 +35,7 @@ PlatformSpeechSynthesizerMock* PlatformSpeechSynthesizerMock::Create(
PlatformSpeechSynthesizerClient* client,
ExecutionContext* context) {
PlatformSpeechSynthesizerMock* synthesizer =
- new PlatformSpeechSynthesizerMock(client, context);
+ MakeGarbageCollected<PlatformSpeechSynthesizerMock>(client, context);
synthesizer->InitializeVoiceList();
client->VoicesDidChange();
return synthesizer;