From 248881fa7fb67d3d161f6e493546de75a3746c07 Mon Sep 17 00:00:00 2001 From: Subv Date: Sun, 4 Mar 2018 10:34:25 -0500 Subject: CoreTiming: Unschedule the pending events when an Interface is destroyed. --- src/core/hle/service/hid/hid.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/hle/service/hid') diff --git a/src/core/hle/service/hid/hid.cpp b/src/core/hle/service/hid/hid.cpp index dacd1862d..7e04ad8d4 100644 --- a/src/core/hle/service/hid/hid.cpp +++ b/src/core/hle/service/hid/hid.cpp @@ -45,6 +45,10 @@ public: CoreTiming::ScheduleEvent(pad_update_ticks, pad_update_event); } + ~IAppletResource() { + CoreTiming::UnscheduleEvent(pad_update_event, 0); + } + private: void GetSharedMemoryHandle(Kernel::HLERequestContext& ctx) { IPC::ResponseBuilder rb{ctx, 2, 1}; -- cgit v1.2.3