diff options
author | David Robillard <d@drobilla.net> | 2014-12-24 16:54:38 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-12-24 16:54:38 -0500 |
commit | 49b7a468052951cfb46a4205c02007ac62f0141d (patch) | |
tree | b1c355164c72b9b0292223d9eece3622d799121c /gtk2_ardour/midi_region_view.h | |
parent | 86242348ec9890a356892a6c89694b75c5251a6a (diff) |
Fix potential memory errors with note player.
Seems unlikely, but if the event firing stuff is off, it could trigger the
issue (#5502) and/or a possible memory leak.
Diffstat (limited to 'gtk2_ardour/midi_region_view.h')
-rw-r--r-- | gtk2_ardour/midi_region_view.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/midi_region_view.h b/gtk2_ardour/midi_region_view.h index 3cca6b9b81..c3ffbd7e1d 100644 --- a/gtk2_ardour/midi_region_view.h +++ b/gtk2_ardour/midi_region_view.h @@ -499,7 +499,7 @@ private: boost::shared_ptr<CursorContext> _press_cursor_ctx; - NotePlayer* _note_player; + boost::shared_ptr<NotePlayer> _note_player; ARDOUR::ChannelMode get_channel_mode() const; uint16_t get_selected_channels () const; |