From 61c5803cce809896b5b61f7cf4b3904ad267d952 Mon Sep 17 00:00:00 2001 From: modusc896d352 Date: Wed, 17 Jul 2024 22:32:41 -0300 Subject: [PATCH] fix crash with compiled VS2022 binary - apparently, freeing data->samples from free_ongakukan_adp (ongakukan_adp_decoder.c) causes heap corruption everywhere because it was already freed to begin with! -- removing the offending line of code will no longer crash VS2022 builds of vgmstream. --- src/coding/ongakukan_adp_decoder.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/coding/ongakukan_adp_decoder.c b/src/coding/ongakukan_adp_decoder.c index b22887ea..39172851 100644 --- a/src/coding/ongakukan_adp_decoder.c +++ b/src/coding/ongakukan_adp_decoder.c @@ -79,7 +79,6 @@ void free_ongakukan_adp(ongakukan_adp_data* data) if (!data) return; close_streamfile(data->sf); ongakukan_adpcm_free(data->handle); - free(data->samples); free(data); }