Closed
Bug 1764861
Opened 2 years ago
Closed 2 years ago
Fix memory leak in DynamicResampler::UpdateResampler
Categories
(Core :: Audio/Video: MediaStreamGraph, defect, P1)
Core
Audio/Video: MediaStreamGraph
Tracking
()
RESOLVED
FIXED
101 Branch
Tracking | Status | |
---|---|---|
firefox101 | --- | fixed |
People
(Reporter: chunmin, Assigned: chunmin)
References
Details
Attachments
(1 file)
We should call speex_resampler_destroy(mResampler)
if mResampler
is non-null before mResampler = speex_resampler_init(...)
[1]. Otherwise the memory space occupied by the old mResampler
is never released.
Assignee | ||
Comment 1•2 years ago
|
||
This can be verified by adding an MOZ_ASSERT(!mResampler)
before mResampler = speex_resampler_init(...)
when running TestDynamicResampler.UpdateChannels_Float
Assignee | ||
Comment 2•2 years ago
|
||
Pushed by cchang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b691f16ed296 Release SpeexResamplerState if needed r=padenot
Comment 4•2 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 2 years ago
status-firefox101:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•