diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-06-11 02:57:08 +0200 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-06-11 22:10:21 +0200 |
commit | 92ca422088eb49c31e8b6146872548c456e56f3e (patch) | |
tree | a67048e517446efc43afbca27f8acc05de654604 /src/core/hle/ipc_helpers.h | |
parent | Kernel: Basic support for IPC translation for HLE services (diff) | |
download | yuzu-92ca422088eb49c31e8b6146872548c456e56f3e.tar yuzu-92ca422088eb49c31e8b6146872548c456e56f3e.tar.gz yuzu-92ca422088eb49c31e8b6146872548c456e56f3e.tar.bz2 yuzu-92ca422088eb49c31e8b6146872548c456e56f3e.tar.lz yuzu-92ca422088eb49c31e8b6146872548c456e56f3e.tar.xz yuzu-92ca422088eb49c31e8b6146872548c456e56f3e.tar.zst yuzu-92ca422088eb49c31e8b6146872548c456e56f3e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/ipc_helpers.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/ipc_helpers.h b/src/core/hle/ipc_helpers.h index 5f370bc3b..f0d89cffe 100644 --- a/src/core/hle/ipc_helpers.h +++ b/src/core/hle/ipc_helpers.h @@ -62,6 +62,9 @@ class RequestBuilder : public RequestHelperBase { public: RequestBuilder(Kernel::HLERequestContext& context, Header command_header) : RequestHelperBase(context, command_header) { + // From this point we will start overwriting the existing command buffer, so it's safe to + // release all previous incoming Object pointers since they won't be usable anymore. + context.ClearIncomingObjects(); cmdbuf[0] = header.raw; } |