소스 검색

pthread: add call to pthread_mutexattr_destroy (#14786)

(cherry picked from commit f805bb53cfe523e4c28dce3211684bae46064f26)
limb-soup 1 개월 전
부모
커밋
f1b2fa5b9b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/thread/pthread/SDL_sysmutex.c

+ 1 - 0
src/thread/pthread/SDL_sysmutex.c

@@ -46,6 +46,7 @@ SDL_Mutex *SDL_CreateMutex(void)
             SDL_free(mutex);
             mutex = NULL;
         }
+	    pthread_mutexattr_destroy(&attr);
     }
     return mutex;
 }