Просмотр исходного кода

pthread: add call to pthread_mutexattr_destroy (#14786)

limb-soup 4 месяцев назад
Родитель
Сommit
f805bb53cf
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;
 }