From 87691afaf90fcaffb95457a61e474a66a88acaa1 Mon Sep 17 00:00:00 2001 From: schellingb <14200249+schellingb@users.noreply.github.com> Date: Wed, 24 Jul 2024 04:19:48 +0900 Subject: [PATCH] Fix sound font output crashing on Android (#491) --- src/gui/tsf.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gui/tsf.h b/src/gui/tsf.h index a2d59fc1..61867507 100644 --- a/src/gui/tsf.h +++ b/src/gui/tsf.h @@ -963,7 +963,6 @@ static int tsf_decode_sf3_samples(const void* rawBuffer, float** pFloatBuffer, u // Trim the sample buffer down then return success (unless out of memory) if (!(*pFloatBuffer = (float*)TSF_REALLOC(res, resNum * sizeof(float)))) *pFloatBuffer = res; - *pFloatBuffer = res; *pSmplCount = resNum; return (res ? 1 : 0); }