cheofusi / just_playback

A small library for playing audio files in python, with essential playback functionality.
MIT License
70 stars 7 forks source link

Double free when MA_ERROR occurs #43

Open ziplantil opened 1 month ago

ziplantil commented 1 month ago

When MA_ERROR occurs while loading a file (e.g. unsupported file format), Python crashes with a message like free(): double free detected in tcache 2.

My initial guess is that ma_decoder_uninit is not meant to be called when ma_decoder_init_file returns MA_ERROR, but it still is.