Skip to content

fix(view): release snapshot image instead of leaking it#25

Merged
dsent merged 1 commit into
aldum:devfrom
Vadim1987:Vadim1987/fix-snapshot-image-leak
Jun 30, 2026
Merged

fix(view): release snapshot image instead of leaking it#25
dsent merged 1 commit into
aldum:devfrom
Vadim1987:Vadim1987/fix-snapshot-image-leak

Conversation

@Vadim1987

Copy link
Copy Markdown

Each suspend created a new screenshot Image via gfx.newImage but never released the previous one; clear_snapshot only nil'd it. Release on overwrite and on clear so VRAM is freed instead of held until GC.

@dsent
dsent requested a review from aldum June 24, 2026 17:17
@dsent
dsent merged commit 42ec92b into aldum:dev Jun 30, 2026
8 checks passed
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.

3 participants