aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/hid_core
diff options
context:
space:
mode:
authorliamwhite <[email protected]>2024-01-07 20:41:11 -0500
committerGitHub <[email protected]>2024-01-07 20:41:11 -0500
commitbd80929ac17be0760a2226cc6b528dd4229d8375 (patch)
tree59c646dd8c567c01512c1e089e08cdfe0f925f3d /src/hid_core
parent2a4ac7cfac9ebdc916a95dbc576a850162886b13 (diff)
parentbc2d1262d7bb4f6d4f97d0fd3d5a495f5e8a972e (diff)
downloadyuzu-mainline-bd80929ac17be0760a2226cc6b528dd4229d8375.tar.gz
yuzu-mainline-bd80929ac17be0760a2226cc6b528dd4229d8375.zip
Merge pull request #12606 from german77/npad_close
service: hid: Delete shared memory handle when unused
Diffstat (limited to 'src/hid_core')
-rw-r--r--src/hid_core/resources/applet_resource.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hid_core/resources/applet_resource.cpp b/src/hid_core/resources/applet_resource.cpp
index d09a525c6..a84826050 100644
--- a/src/hid_core/resources/applet_resource.cpp
+++ b/src/hid_core/resources/applet_resource.cpp
@@ -130,6 +130,7 @@ void AppletResource::FreeAppletResourceId(u64 aruid) {
if (aruid_data.flag.is_assigned) {
aruid_data.shared_memory_format = nullptr;
aruid_data.flag.is_assigned.Assign(false);
+ shared_memory_holder[index].Finalize();
}
}