Fix an invalid memory access.

bi was freed before accessing it.
Fix a potential memory leak.
OggSpliter: Fix off-by-one error.
DSUtil: Fix deletion of void*