mirror of
https://github.com/GreemDev/Ryujinx
synced 2024-11-22 17:56:59 +01:00
Fix handle leak on IShopServiceAccessServerInterface.CreateServerInterface (#4591)
This commit is contained in:
parent
0992310b76
commit
26e30faff3
1 changed files with 3 additions and 0 deletions
|
@ -14,6 +14,9 @@ namespace Ryujinx.HLE.HOS.Services.Nim
|
|||
// CreateServerInterface(pid, handle<unknown>, u64) -> object<nn::ec::IShopServiceAccessServer>
|
||||
public ResultCode CreateServerInterface(ServiceCtx context)
|
||||
{
|
||||
// Close transfer memory immediately as we don't use it.
|
||||
context.Device.System.KernelContext.Syscall.CloseHandle(context.Request.HandleDesc.ToCopy[0]);
|
||||
|
||||
MakeObject(context, new IShopServiceAccessServer());
|
||||
|
||||
Logger.Stub?.PrintStub(LogClass.ServiceNim);
|
||||
|
|
Loading…
Reference in a new issue