aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/am/applets
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-10-29 19:46:47 -0400
committerGitHub <noreply@github.com>2023-10-29 19:46:47 -0400
commitadb090090605d3b1f4368fb0c7bc836206aa4bdf (patch)
treec152945e6c527e90def56460b763c44b7cede53f /src/core/hle/service/am/applets
parent2d608cd62526a0dbde286c80e714d5b24725a8f9 (diff)
parent6e883a26da52b84086340ca5b5d38f55ef04bf8d (diff)
Merge pull request #11911 from german77/leak_event
core: Close all KEvents
Diffstat (limited to 'src/core/hle/service/am/applets')
-rw-r--r--src/core/hle/service/am/applets/applet_cabinet.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/hle/service/am/applets/applet_cabinet.cpp b/src/core/hle/service/am/applets/applet_cabinet.cpp
index 19ed184e8..b379dadeb 100644
--- a/src/core/hle/service/am/applets/applet_cabinet.cpp
+++ b/src/core/hle/service/am/applets/applet_cabinet.cpp
@@ -25,7 +25,9 @@ Cabinet::Cabinet(Core::System& system_, LibraryAppletMode applet_mode_,
service_context.CreateEvent("CabinetApplet:AvailabilityChangeEvent");
}
-Cabinet::~Cabinet() = default;
+Cabinet::~Cabinet() {
+ service_context.CloseEvent(availability_change_event);
+};
void Cabinet::Initialize() {
Applet::Initialize();