mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-22 10:04:39 +00:00
kernel: Delete cond attr
May solve memory leaks in games that create/destroy these often
This commit is contained in:
parent
96f7a75f38
commit
e3c2a91477
@ -1182,6 +1182,7 @@ int PS4_SYSV_ABI scePthreadCondattrDestroy(ScePthreadCondattr* attr) {
|
|||||||
int result = pthread_condattr_destroy(&(*attr)->cond_attr);
|
int result = pthread_condattr_destroy(&(*attr)->cond_attr);
|
||||||
|
|
||||||
LOG_DEBUG(Kernel_Pthread, "scePthreadCondattrDestroy: result = {} ", result);
|
LOG_DEBUG(Kernel_Pthread, "scePthreadCondattrDestroy: result = {} ", result);
|
||||||
|
delete *attr;
|
||||||
|
|
||||||
switch (result) {
|
switch (result) {
|
||||||
case 0:
|
case 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user