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:
@@ -75,7 +75,7 @@ PatchChange::PatchChange (MidiView& region,
|
|||||||
|
|
||||||
PatchChange::~PatchChange ()
|
PatchChange::~PatchChange ()
|
||||||
{
|
{
|
||||||
/* _flag is deleted by the canvas container/parent it is placed in */
|
delete _flag;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ SysEx::SysEx (
|
|||||||
|
|
||||||
SysEx::~SysEx()
|
SysEx::~SysEx()
|
||||||
{
|
{
|
||||||
/* _flag is deleted by the canvas container/parent it is placed in */
|
delete _flag;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|||||||
Reference in New Issue
Block a user