diff options
author | David Robillard <d@drobilla.net> | 2008-02-02 05:54:18 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-02-02 05:54:18 +0000 |
commit | 78cefc81fd7187387ed49212589f16825e8c8854 (patch) | |
tree | b95500a3951d093cc19ec841f1a8438f69c979da /gtk2_ardour/editor_selection.cc | |
parent | 9b36d0c57d382c08a14faa1d1fd682f913da26c8 (diff) |
Potential segfault fix (the "why" part I don't know).
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2989 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_selection.cc')
-rw-r--r-- | gtk2_ardour/editor_selection.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_selection.cc b/gtk2_ardour/editor_selection.cc index 8e1d35ca69..fb10b0b81f 100644 --- a/gtk2_ardour/editor_selection.cc +++ b/gtk2_ardour/editor_selection.cc @@ -1345,7 +1345,7 @@ Editor::ExclusiveRegionSelection::ExclusiveRegionSelection (Editor& ed, RegionVi Editor::ExclusiveRegionSelection::~ExclusiveRegionSelection () { - if (remove) { + if (remove && regionview) { editor.get_selection().remove (regionview); } } |