add notifyInsDeletion
prevent invalid memory access when deleting instruments
This commit is contained in:
parent
0545775de6
commit
91e8ff01cf
18 changed files with 61 additions and 0 deletions
|
|
@ -215,3 +215,9 @@ void DivMacroInt::init(DivInstrument* which) {
|
|||
arpMode=true;
|
||||
}
|
||||
}
|
||||
|
||||
void DivMacroInt::notifyInsDeletion(DivInstrument* which) {
|
||||
if (ins==which) {
|
||||
init(NULL);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue