Skip to content

Commit 0293455

Browse files
committed
fix(stb): zero allocation in Vorbis decoding. Close LWJGL#596
1 parent 16c0c49 commit 0293455

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/lwjgl/stb/src/main/c/stb_vorbis.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ static void *setup_malloc(vorb *f, int sz)
942942
f->setup_offset += sz;
943943
return p;
944944
}
945-
return sz ? malloc(sz) : NULL;
945+
return malloc(sz); // LWJGL fix
946946
}
947947

948948
static void setup_free(vorb *f, void *p)

0 commit comments

Comments
 (0)