mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
ARAPluginDemo: Fix potential crash during RegionSequence removal
This commit is contained in:
parent
4a172a3d71
commit
e6509fcb51
1 changed files with 3 additions and 1 deletions
|
|
@ -515,7 +515,9 @@ public:
|
|||
|
||||
void willRemoveRegionSequence (ARA::PlugIn::RegionSequence* rs) noexcept override
|
||||
{
|
||||
regionSequences.erase (static_cast<ARARegionSequence*> (rs));
|
||||
auto* rsToRemove = static_cast<ARARegionSequence*> (rs);
|
||||
rsToRemove->removeListener (this);
|
||||
regionSequences.erase (rsToRemove);
|
||||
}
|
||||
|
||||
void didAddPlaybackRegion (ARA::PlugIn::PlaybackRegion*) noexcept override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue