diff --git a/libs/ardour/midi_scene_changer.cc b/libs/ardour/midi_scene_changer.cc index d785d016bc..18c01632a5 100644 --- a/libs/ardour/midi_scene_changer.cc +++ b/libs/ardour/midi_scene_changer.cc @@ -340,7 +340,7 @@ MIDISceneChanger::program_change_input (MIDI::Parser& parser, MIDI::byte program bank = std::dynamic_pointer_cast(input_port)->channel (channel)->bank(); } - MIDISceneChange* msc =new MIDISceneChange (channel, bank, program & 0x7f); + std::shared_ptr msc (new MIDISceneChange (channel, bank, program & 0x7f)); /* check for identical scene change so we can re-use color, if any */