summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-02-02 05:54:18 +0000
committerDavid Robillard <d@drobilla.net>2008-02-02 05:54:18 +0000
commit78cefc81fd7187387ed49212589f16825e8c8854 (patch)
treeb95500a3951d093cc19ec841f1a8438f69c979da
parent9b36d0c57d382c08a14faa1d1fd682f913da26c8 (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
-rw-r--r--gtk2_ardour/editor_selection.cc2
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);
}
}