Skip to content

Commit

Permalink
fix(stb): zero allocation in Vorbis decoding. Close LWJGL#596
Browse files Browse the repository at this point in the history
  • Loading branch information
Spasi committed Oct 15, 2020
1 parent 16c0c49 commit 0293455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/lwjgl/stb/src/main/c/stb_vorbis.c
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ static void *setup_malloc(vorb *f, int sz)
f->setup_offset += sz;
return p;
}
return sz ? malloc(sz) : NULL;
return malloc(sz); // LWJGL fix
}

static void setup_free(vorb *f, void *p)
Expand Down

0 comments on commit 0293455

Please sign in to comment.