summaryrefslogtreecommitdiff
path: root/gtk2_ardour/region_view.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2007-11-04 21:01:06 +0000
committerCarl Hetherington <carl@carlh.net>2007-11-04 21:01:06 +0000
commit48b685dad1ed791d0bdd155ef64454adc1391774 (patch)
treec0c2a2ca7fac4d4a61824c11f05939ed2e0bb613 /gtk2_ardour/region_view.cc
parent56ab60f16383cc6de77118cb20bd85ce8deaef57 (diff)
Don't copy a naked pointer in the copy constructor, to prevent a double delete.
git-svn-id: svn://localhost/ardour2/trunk@2586 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/region_view.cc')
-rw-r--r--gtk2_ardour/region_view.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/region_view.cc b/gtk2_ardour/region_view.cc
index cb8e7f235b..f2d82e0f62 100644
--- a/gtk2_ardour/region_view.cc
+++ b/gtk2_ardour/region_view.cc
@@ -86,7 +86,7 @@ RegionView::RegionView (const RegionView& other)
/* derived concrete type will call init () */
_region = other._region;
- editor = other.editor;
+ editor = 0;
current_visible_sync_position = other.current_visible_sync_position;
valid = false;
_enable_display = false;