summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/audio/audout_u.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-03-04 17:52:08 +0100
committerGitHub <noreply@github.com>2018-03-04 17:52:08 +0100
commit3c3d5eeddf34bc52b2770df8f1c4cda1dc8e5b77 (patch)
tree43bd3a05be18765314f946958a87999bb8ae13b1 /src/core/hle/service/audio/audout_u.cpp
parentMerge pull request #226 from Subv/buffer_queue_event (diff)
parentCoreTiming: Unschedule the pending events when an Interface is destroyed. (diff)
downloadyuzu-3c3d5eeddf34bc52b2770df8f1c4cda1dc8e5b77.tar
yuzu-3c3d5eeddf34bc52b2770df8f1c4cda1dc8e5b77.tar.gz
yuzu-3c3d5eeddf34bc52b2770df8f1c4cda1dc8e5b77.tar.bz2
yuzu-3c3d5eeddf34bc52b2770df8f1c4cda1dc8e5b77.tar.lz
yuzu-3c3d5eeddf34bc52b2770df8f1c4cda1dc8e5b77.tar.xz
yuzu-3c3d5eeddf34bc52b2770df8f1c4cda1dc8e5b77.tar.zst
yuzu-3c3d5eeddf34bc52b2770df8f1c4cda1dc8e5b77.zip
Diffstat (limited to 'src/core/hle/service/audio/audout_u.cpp')
-rw-r--r--src/core/hle/service/audio/audout_u.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/hle/service/audio/audout_u.cpp b/src/core/hle/service/audio/audout_u.cpp
index 780a4e6e5..e873d768f 100644
--- a/src/core/hle/service/audio/audout_u.cpp
+++ b/src/core/hle/service/audio/audout_u.cpp
@@ -52,7 +52,9 @@ public:
CoreTiming::ScheduleEvent(audio_ticks, audio_event);
}
- ~IAudioOut() = default;
+ ~IAudioOut() {
+ CoreTiming::UnscheduleEvent(audio_event, 0);
+ }
private:
void StartAudioOut(Kernel::HLERequestContext& ctx) {