From 78cefc81fd7187387ed49212589f16825e8c8854 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 2 Feb 2008 05:54:18 +0000 Subject: 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 --- gtk2_ardour/editor_selection.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- cgit v1.2.3