kernel: Delete cond attr
Some checks are pending
Reuse / reuse (push) Waiting to run
Clang Format / clang-format (push) Waiting to run
Linux-Qt / build (push) Waiting to run
Linux / build (push) Waiting to run
macOS-Qt / build (push) Waiting to run
macOS / build (push) Waiting to run
Windows-Qt / build (push) Waiting to run
Windows / build (push) Waiting to run

May solve memory leaks in games that create/destroy these often
This commit is contained in:
TheTurtle 2024-09-09 00:48:00 +03:00 committed by GitHub
parent 96f7a75f38
commit e3c2a91477
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1182,6 +1182,7 @@ int PS4_SYSV_ABI scePthreadCondattrDestroy(ScePthreadCondattr* attr) {
int result = pthread_condattr_destroy(&(*attr)->cond_attr);
LOG_DEBUG(Kernel_Pthread, "scePthreadCondattrDestroy: result = {} ", result);
delete *attr;
switch (result) {
case 0: