diff --git a/rpcs3/Emu/Cell/Modules/cellDmuxPamf.cpp b/rpcs3/Emu/Cell/Modules/cellDmuxPamf.cpp index 19d85c4fb1..7281b0edf9 100644 --- a/rpcs3/Emu/Cell/Modules/cellDmuxPamf.cpp +++ b/rpcs3/Emu/Cell/Modules/cellDmuxPamf.cpp @@ -2048,6 +2048,12 @@ error_code DmuxPamfContext::close(ppu_thread& ppu) ensure(idm::remove(hle_spu_thread_id)); + if (sys_cond_destroy(ppu, cond) != CELL_OK + || sys_mutex_destroy(ppu, mutex) != CELL_OK) + { + return CELL_DMUX_PAMF_ERROR_FATAL; + } + return CELL_OK; }