Skip to content

Commit

Permalink
Fix sys_cond_destroy (#7931)
Browse files Browse the repository at this point in the history
Dereference cond count in sys_cond_destroy
  • Loading branch information
elad335 committed Apr 3, 2020
1 parent 3979614 commit 3f559cd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions rpcs3/Emu/Cell/lv2/sys_cond.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ error_code sys_cond_destroy(ppu_thread& ppu, u32 cond_id)
return CELL_EBUSY;
}

cond.mutex->cond_count--;
return {};
});

Expand Down
5 changes: 0 additions & 5 deletions rpcs3/Emu/Cell/lv2/sys_cond.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ struct lv2_cond final : lv2_obj
{
this->mutex->cond_count++;
}

~lv2_cond()
{
this->mutex->cond_count--;
}
};

class ppu_thread;
Expand Down

0 comments on commit 3f559cd

Please sign in to comment.