Skip to content

Fix Waveform not disposing Stream#6152

Merged
bdach merged 4 commits into
ppy:masterfrom
hwsmm:dispose-waveform-stream
Feb 2, 2024
Merged

Fix Waveform not disposing Stream#6152
bdach merged 4 commits into
ppy:masterfrom
hwsmm:dispose-waveform-stream

Conversation

@hwsmm

@hwsmm hwsmm commented Jan 27, 2024

Copy link
Copy Markdown
Contributor

I found this issue a bit back while testing performance of Waveform implementation of #6002.
Having data.Dispose() in my code hindered the benchmarks from running, and it seemed that the benchmarks used a single stream through its entire session.

I assumed that the stream gets disposed somewhere else, but I couldn't find any code for that. This could be my oversight, but writing this PR didn't take much time anyway...

@peppy
peppy self-requested a review January 28, 2024 17:47
@bdach
bdach self-requested a review February 2, 2024 12:41
@pull-request-size pull-request-size Bot added size/M and removed size/S labels Feb 2, 2024

@bdach bdach left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems okay

@bdach
bdach merged commit 6ba6ac8 into ppy:master Feb 2, 2024
smoogipoo pushed a commit to smoogipoo/osu-framework that referenced this pull request Feb 3, 2024
@hwsmm
hwsmm deleted the dispose-waveform-stream branch February 8, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants