summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2024-01-08 02:41:11 +0100
committerGitHub <noreply@github.com>2024-01-08 02:41:11 +0100
commitbd80929ac17be0760a2226cc6b528dd4229d8375 (patch)
tree59c646dd8c567c01512c1e089e08cdfe0f925f3d
parentMerge pull request #12600 from german77/npad-impl (diff)
parentservice: hid: Delete shared memory handle when unused (diff)
downloadyuzu-bd80929ac17be0760a2226cc6b528dd4229d8375.tar
yuzu-bd80929ac17be0760a2226cc6b528dd4229d8375.tar.gz
yuzu-bd80929ac17be0760a2226cc6b528dd4229d8375.tar.bz2
yuzu-bd80929ac17be0760a2226cc6b528dd4229d8375.tar.lz
yuzu-bd80929ac17be0760a2226cc6b528dd4229d8375.tar.xz
yuzu-bd80929ac17be0760a2226cc6b528dd4229d8375.tar.zst
yuzu-bd80929ac17be0760a2226cc6b528dd4229d8375.zip
-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();
}
}