Skip to content

Commit 21897f4

Browse files
authored
Remap stb_vorbis malloc/free calls to RL_MALLOC/RL_FREE (#5763)
1 parent d8ebeb8 commit 21897f4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/raudio.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,11 @@ typedef struct tagBITMAPINFOHEADER {
210210
#endif
211211

212212
#if SUPPORT_FILEFORMAT_OGG
213-
// TODO: Remap stb_vorbis malloc()/free() calls to RL_MALLOC/RL_FREE
213+
#define malloc RL_MALLOC
214+
#define free RL_FREE
214215
#include "external/stb_vorbis.c" // OGG loading functions
216+
#undef malloc
217+
#undef free
215218
#endif
216219

217220
#if SUPPORT_FILEFORMAT_MP3

0 commit comments

Comments
 (0)