aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/hid_core
diff options
context:
space:
mode:
authorgerman77 <[email protected]>2024-01-07 12:55:24 -0600
committergerman77 <[email protected]>2024-01-07 12:55:24 -0600
commitbc2d1262d7bb4f6d4f97d0fd3d5a495f5e8a972e (patch)
tree57cca403630c9bccb575eee819b7dfa70f295f74 /src/hid_core
parent1220309323aceccb8389b4ce0eb16497fb21eaeb (diff)
downloadyuzu-mainline-bc2d1262d7bb4f6d4f97d0fd3d5a495f5e8a972e.tar.gz
yuzu-mainline-bc2d1262d7bb4f6d4f97d0fd3d5a495f5e8a972e.zip
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();
}
}