Commit 0f45a4e3036820f3ea00e4234e5a22a7f3702ed0

Ryan C. Gordon 2022-04-27T12:22:37

log: Don't try to SDL_free the static array. :) I shouldn't be allowed near computers, I swear.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/SDL_log.c b/src/SDL_log.c
index db67888..ff07c6f 100644
--- a/src/SDL_log.c
+++ b/src/SDL_log.c
@@ -327,8 +327,6 @@ SDL_LogMessageV(int category, SDL_LogPriority priority, const char *fmt, va_list
     if (log_function_mutex) {
         SDL_UnlockMutex(log_function_mutex);
     }
-
-    SDL_free(message);
 }
 
 #if defined(__WIN32__) && !defined(HAVE_STDIO_H) && !defined(__WINRT__)