SDL: pthread: add call to pthread_mutexattr_destroy (#14786)

From f805bb53cfe523e4c28dce3211684bae46064f26 Mon Sep 17 00:00:00 2001
From: limb-soup <[EMAIL REDACTED]>
Date: Wed, 7 Jan 2026 18:56:03 +0000
Subject: [PATCH] pthread: add call to pthread_mutexattr_destroy (#14786)

---
 src/thread/pthread/SDL_sysmutex.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/thread/pthread/SDL_sysmutex.c b/src/thread/pthread/SDL_sysmutex.c
index 3e04d2150c67b..7e03342322803 100644
--- a/src/thread/pthread/SDL_sysmutex.c
+++ b/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;
 }