NokiaTube | New address | Mode Phone | Off high quality for Nokia Browser
Skip to content

Decoder: don't post-initialize twice when opening by path - #1201

Merged
mackron merged 1 commit into
mackron:dev-0.12from
sjoblomj:decoder-double-post-initialization
Nov 19, 2026
Merged

mackron merged 1 commit into
mackron:dev-0.12from
sjoblomj:decoder-double-post-initialization

Conversation

@sjoblomj

Copy link
Copy Markdown
Contributor

ma_decoder_init__internal() already calls ma_decoder__postinit() when a backend succeeds. ma_decoder_init_vfs() and ma_decoder_init_vfs_w() then called it a second time, which initialized the data converter again and leaked the first one's heap, along with the input cache when resampling.

It is only on dev-0.12, not on dev.

@sjoblomj
sjoblomj changed the base branch from master to dev-0.12 November 16, 2026 17:59
@mackron
mackron merged commit 6180e6c into mackron:dev-0.12 Nov 19, 2026
32 checks passed
@mackron

mackron commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Thanks. Merged.

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