[channels,audin] free up old audio formats

This commit is contained in:
akallabeth
2026-01-10 08:36:38 +01:00
parent 62a9e787ed
commit cd1ffa112c

View File

@@ -206,6 +206,10 @@ static UINT audin_process_formats(AUDIN_PLUGIN* audin, AUDIN_CHANNEL_CALLBACK* c
}
Stream_Seek_UINT32(s); /* cbSizeFormatsPacket */
audio_formats_free(callback->formats, callback->formats_count);
callback->formats_count = 0;
callback->formats = audio_formats_new(NumFormats);
if (!callback->formats)