From 509108f23ea3be8741f444ae57d84378df79975f Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 21 Jun 2024 12:49:58 -0600 Subject: [PATCH] slightly improve mgmt of shared_ptr --- libs/ardour/midi_scene_changer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */