mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
slightly improve mgmt of shared_ptr<MIDISceneChange>
This commit is contained in:
parent
f54fd286ee
commit
d7f9b659f2
1 changed files with 1 additions and 1 deletions
|
|
@ -340,7 +340,7 @@ MIDISceneChanger::program_change_input (MIDI::Parser& parser, MIDI::byte program
|
|||
bank = std::dynamic_pointer_cast<AsyncMIDIPort>(input_port)->channel (channel)->bank();
|
||||
}
|
||||
|
||||
MIDISceneChange* msc =new MIDISceneChange (channel, bank, program & 0x7f);
|
||||
std::shared_ptr<MIDISceneChange> msc (new MIDISceneChange (channel, bank, program & 0x7f));
|
||||
|
||||
/* check for identical scene change so we can re-use color, if any */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue