mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-08 01:00:11 +00:00
fix use after move in cellVdec.cpp
This commit is contained in:
parent
d9e0d016c6
commit
ad4677a67c
1 changed files with 1 additions and 1 deletions
|
@ -983,7 +983,7 @@ error_code cellVdecClose(ppu_thread& ppu, u32 handle)
|
||||||
std::lock_guard lock{vdec->mutex};
|
std::lock_guard lock{vdec->mutex};
|
||||||
vdec->seq_state = sequence_state::closed;
|
vdec->seq_state = sequence_state::closed;
|
||||||
|
|
||||||
if (!idm::remove_verify<vdec_context>(handle, std::move(vdec)))
|
if (!idm::remove_verify<vdec_context>(handle, vdec))
|
||||||
{
|
{
|
||||||
// Other thread removed it beforehead
|
// Other thread removed it beforehead
|
||||||
return CELL_VDEC_ERROR_ARG;
|
return CELL_VDEC_ERROR_ARG;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue