Merge pull request #12606 from german77/npad_close

service: hid: Delete shared memory handle when unused
This commit is contained in:
liamwhite 2024-01-07 20:41:11 -05:00 committed by GitHub
commit bd80929ac1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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();
}
}