Skip to content

fix: memory leak in resampler#697

Merged
frysee merged 1 commit intoLoveRetro:mainfrom
pvaibhav:fix-memory-leak-resampler
Mar 26, 2026
Merged

fix: memory leak in resampler#697
frysee merged 1 commit intoLoveRetro:mainfrom
pvaibhav:fix-memory-leak-resampler

Conversation

@pvaibhav
Copy link
Copy Markdown

The bug sneaked in as part of PR #573 which did have static buffers, but was reverted. Only this line seems to have sneaked in. Current main branch does not have static buffers in the resample_audio() function. Check issue #696 for details.

The bug sneaked in as part of PR LoveRetro#573 which did have static buffers, but was reverted. Only this line seems to have sneaked in. Current main branch does not have static buffers in the resample_audio() function. Check issue LoveRetro#696 for details.
@pvaibhav pvaibhav changed the title fix: free resampled frames in SND_batchSamples_fixed_rate function fix: memory leak in resampler Mar 26, 2026
@frysee
Copy link
Copy Markdown
Member

frysee commented Mar 26, 2026

Good catch! This might actually explain some of the semi-random crashes that have been reported.

@pvaibhav
Copy link
Copy Markdown
Author

😁 let’s merge this baby asap

@frysee frysee merged commit fd77edf into LoveRetro:main Mar 26, 2026
62 checks passed
@pvaibhav pvaibhav deleted the fix-memory-leak-resampler branch March 26, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants