Skip to content

Fix memory leaks - #1908

Merged
radioactiveman merged 4 commits into
audacious-media-player:masterfrom
gruenich:fix/memory-leaks
Nov 22, 2026
Merged

radioactiveman merged 4 commits into
audacious-media-player:masterfrom
gruenich:fix/memory-leaks

Conversation

@gruenich

Copy link
Copy Markdown
Contributor

I asked Claude code to find memory leaks. I checked the four and they look valid to me.

Delete the request in scan_cancel() if the playback thread has not taken
it yet.
For every command line argument, a "--" + name string was allocated
with g_strconcat() for each entry of the handler table and never freed,
leaking about 100 strings per argument. Strip a leading "--" from the
argument instead, which accepts the same commands without allocating.
Make the layout the parent so the group is destroyed together
with the page.
@radioactiveman
radioactiveman merged commit bfd5c79 into audacious-media-player:master Nov 22, 2026
@radioactiveman

Copy link
Copy Markdown
Member

Thank you. 👍

@gruenich
gruenich deleted the fix/memory-leaks branch November 22, 2026 17:27
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