From 21897f4bb9e326955d9c26772bb3fdef436d8534 Mon Sep 17 00:00:00 2001 From: nadav78 <95895660+nadav78@users.noreply.github.com> Date: Thu, 16 Apr 2026 00:51:47 +0300 Subject: [PATCH] Remap stb_vorbis malloc/free calls to RL_MALLOC/RL_FREE (#5763) --- src/raudio.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/raudio.c b/src/raudio.c index 3cd6b37aa..9ca5e9c7d 100644 --- a/src/raudio.c +++ b/src/raudio.c @@ -210,8 +210,11 @@ typedef struct tagBITMAPINFOHEADER { #endif #if SUPPORT_FILEFORMAT_OGG - // TODO: Remap stb_vorbis malloc()/free() calls to RL_MALLOC/RL_FREE + #define malloc RL_MALLOC + #define free RL_FREE #include "external/stb_vorbis.c" // OGG loading functions + #undef malloc + #undef free #endif #if SUPPORT_FILEFORMAT_MP3