diff options
| author | 2024-01-07 12:55:24 -0600 | |
|---|---|---|
| committer | 2024-01-07 12:55:24 -0600 | |
| commit | bc2d1262d7bb4f6d4f97d0fd3d5a495f5e8a972e (patch) | |
| tree | 57cca403630c9bccb575eee819b7dfa70f295f74 /src/hid_core | |
| parent | Merge pull request #12560 from GayPotatoEmma/master (diff) | |
| download | yuzu-bc2d1262d7bb4f6d4f97d0fd3d5a495f5e8a972e.tar.gz yuzu-bc2d1262d7bb4f6d4f97d0fd3d5a495f5e8a972e.tar.xz yuzu-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.cpp | 1 |
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) { | |||
| 130 | if (aruid_data.flag.is_assigned) { | 130 | if (aruid_data.flag.is_assigned) { |
| 131 | aruid_data.shared_memory_format = nullptr; | 131 | aruid_data.shared_memory_format = nullptr; |
| 132 | aruid_data.flag.is_assigned.Assign(false); | 132 | aruid_data.flag.is_assigned.Assign(false); |
| 133 | shared_memory_holder[index].Finalize(); | ||
| 133 | } | 134 | } |
| 134 | } | 135 | } |
| 135 | 136 | ||