0
0
Fork 0

ipc hle: Fix disposing of session created with MakeObject (#1404)

This fix a missing part of #1397, making HLE ipc session being disposed
when needed.

THis is needed for upcoming wip changes.
This commit is contained in:
Mary 2020-07-20 04:23:26 +02:00 committed by GitHub
parent e7f2a5ecb7
commit d5c34291a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -177,6 +177,9 @@ namespace Ryujinx.HLE.HOS.Services
throw new InvalidOperationException("Out of handles!"); throw new InvalidOperationException("Out of handles!");
} }
session.ServerSession.DecrementReferenceCount();
session.ClientSession.DecrementReferenceCount();
context.Response.HandleDesc = IpcHandleDesc.MakeMove(handle); context.Response.HandleDesc = IpcHandleDesc.MakeMove(handle);
} }
} }