From bc2d1262d7bb4f6d4f97d0fd3d5a495f5e8a972e Mon Sep 17 00:00:00 2001 From: german77 Date: Sun, 7 Jan 2024 12:55:24 -0600 Subject: service: hid: Delete shared memory handle when unused --- src/hid_core/resources/applet_resource.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/hid_core') 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(); } } -- cgit v1.2.3