diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-01-15 15:12:30 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-01-15 15:12:30 +0000 |
commit | d7ea70f4f131c5730803d0385c9abdfd4fba65c0 (patch) | |
tree | b40b7514167162eb12a7acc6941cccbfc1f63f3e /gtk2_ardour | |
parent | 5b9bd3eea007b20995aa2e797e4bcfeeed2b9aae (diff) |
force use of a weak_ptr<> when binding in MidiStreamView, hopefully avoiding putting a shared_ptr<Region> into an object
git-svn-id: svn://localhost/ardour2/branches/3.0@13845 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/midi_streamview.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/midi_streamview.cc b/gtk2_ardour/midi_streamview.cc index 4448a5e323..843ca1bfc2 100644 --- a/gtk2_ardour/midi_streamview.cc +++ b/gtk2_ardour/midi_streamview.cc @@ -163,7 +163,8 @@ MidiStreamView::add_region_view_internal (boost::shared_ptr<Region> r, bool wfd, } /* catch regionview going away */ - region->DropReferences.connect (*this, invalidator (*this), boost::bind (&MidiStreamView::remove_region_view, this, region), gui_context()); + boost::weak_ptr<Region> wr (region); // make this explicit + region->DropReferences.connect (*this, invalidator (*this), boost::bind (&MidiStreamView::remove_region_view, this, wr), gui_context()); RegionViewAdded (region_view); |