minimp3 icon indicating copy to clipboard operation
minimp3 copied to clipboard

No method to free data allocated by mp3dec_load_buf

Open samhattangady opened this issue 3 years ago • 0 comments

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);
}

samhattangady avatar Jun 29 '22 08:06 samhattangady