mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-04 23:07:46 -04:00
fixes for memory leaks and out of bounds memory access found by ASAN or gcc -flto
This commit is contained in:
parent
bb70cc6e66
commit
a20300bf1e
8 changed files with 27 additions and 12 deletions
|
@ -1470,6 +1470,8 @@ static void reset_channels(FM_CH *CH)
|
|||
CH[c].SLOT[s].Incr = -1;
|
||||
CH[c].SLOT[s].key = 0;
|
||||
CH[c].SLOT[s].phase = 0;
|
||||
CH[c].SLOT[s].ar = CH[c].SLOT[s].ksr = 0;
|
||||
CH[c].SLOT[s].ar_ksr = 0;
|
||||
CH[c].SLOT[s].ssg = CH[c].SLOT[s].ssgn = 0;
|
||||
CH[c].SLOT[s].state= EG_OFF;
|
||||
CH[c].SLOT[s].volume = MAX_ATT_INDEX;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue