lieff / minimp3

Minimalistic MP3 decoder single header library
Creative Commons Zero v1.0 Universal
1.58k stars 213 forks source link

No method to free data allocated by mp3dec_load_buf #98

Open samhattangady opened 2 years ago

samhattangady commented 2 years ago

mp3dec_load_buf and mp3dec_load_cb allocate some data by making a call to malloc. There is no method for us to call to free that data.

I wrote a small function for that.

void mp3dec_free(mp3dec_file_info_t *info) 
{
    free((void*)info->buffer);
}