Commit 02fba93
lass: fix reverb use-after-free in ConstructorCommon
The parameter shadowed the `percentReverb` member, so the member was never
assigned -- left dangling (default/room-size ctors) or uninitialised (the
`Envelope*` ctors, whose own parameter also shadows the member). This caused a
use-after-free + double-free on the first reverb call, crashing renders that
apply reverb. Assign `this->percentReverb` instead.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent fcee6c9 commit 02fba93
1 file changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
213 | | - | |
214 | | - | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
215 | 222 | | |
216 | 223 | | |
217 | 224 | | |
| |||
0 commit comments