From ad4677a67ca3a182f956f6b95e616ac65baa3f92 Mon Sep 17 00:00:00 2001 From: oltolm Date: Sun, 22 Jan 2023 09:54:46 +0100 Subject: [PATCH] fix use after move in cellVdec.cpp --- rpcs3/Emu/Cell/Modules/cellVdec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/Modules/cellVdec.cpp b/rpcs3/Emu/Cell/Modules/cellVdec.cpp index dfba923aca..5f08164e77 100644 --- a/rpcs3/Emu/Cell/Modules/cellVdec.cpp +++ b/rpcs3/Emu/Cell/Modules/cellVdec.cpp @@ -983,7 +983,7 @@ error_code cellVdecClose(ppu_thread& ppu, u32 handle) std::lock_guard lock{vdec->mutex}; vdec->seq_state = sequence_state::closed; - if (!idm::remove_verify(handle, std::move(vdec))) + if (!idm::remove_verify(handle, vdec)) { // Other thread removed it beforehead return CELL_VDEC_ERROR_ARG;