From 034fd6424ff5e3ed993ffd4f9835dd1069e261cd Mon Sep 17 00:00:00 2001 From: philippegorley <philippe.gorley@savoirfairelinux.com> Date: Tue, 7 Aug 2018 16:34:16 -0400 Subject: [PATCH] audio: play tone when calling Fixes regression introduced by b1539bd. Since Tone was now in a shared_ptr, reset was called on the shared_ptr instead of the Tone. Change-Id: If2041feb8cffbb62f1748867a5099c2a0718de1d --- src/media/audio/sound/tonelist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/media/audio/sound/tonelist.cpp b/src/media/audio/sound/tonelist.cpp index 1a6321cba2..d37a9bff45 100644 --- a/src/media/audio/sound/tonelist.cpp +++ b/src/media/audio/sound/tonelist.cpp @@ -103,7 +103,7 @@ void TelephoneTone::setCurrentTone(Tone::TONEID toneId) { if (toneId != Tone::TONE_NULL && currentTone_ != toneId) - tones_[toneId].reset(); + tones_[toneId]->reset(); currentTone_ = toneId; } -- GitLab