mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-02 03:47:42 +01:00
Revert "avoid double-free of MIDI sys ex and patch change canvas items"
This reverts commit 0ddc050555.
It is not clear what this commit was really trying to do - when canvas items
are deleted they are removed from their parent, so just *not* deleting them
should not by itself fix an issue.
It turns out that not deleting the canvas item means that it remains in the
canvas scene graph to deliver events to, at which time it references its
now-deleted owner object, leading to a crash.
We need to keep an eye open for crashes resembling the double-free that this
reverted commit claimed to fix.
This commit is contained in:
parent
856aad62da
commit
e664fa5e63
2 changed files with 2 additions and 2 deletions
|
|
@ -75,7 +75,7 @@ PatchChange::PatchChange (MidiView& region,
|
|||
|
||||
PatchChange::~PatchChange ()
|
||||
{
|
||||
/* _flag is deleted by the canvas container/parent it is placed in */
|
||||
delete _flag;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ SysEx::SysEx (
|
|||
|
||||
SysEx::~SysEx()
|
||||
{
|
||||
/* _flag is deleted by the canvas container/parent it is placed in */
|
||||
delete _flag;
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue