Browse Source

Merge pull request #12606 from german77/npad_close

service: hid: Delete shared memory handle when unused
liamwhite 2 năm trước cách đây
mục cha
commit
bd80929ac1
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/hid_core/resources/applet_resource.cpp

+ 1 - 0
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();
     }
 }