Fix double-delete crash.
authorCarl Hetherington <carl@carlh.net>
Tue, 1 Dec 2009 00:58:01 +0000 (00:58 +0000)
committerCarl Hetherington <carl@carlh.net>
Tue, 1 Dec 2009 00:58:01 +0000 (00:58 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@6232 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/audio_playlist.cc

index 30479cf65b2dc4df0d327670d53811bfec06f3c8..96494394873f47fe26a68d0078369de7820cbf6d 100644 (file)
@@ -402,6 +402,7 @@ AudioPlaylist::check_dependents (boost::shared_ptr<Region> r, bool norefresh)
                OverlapType c = top->coverage (bottom->position(), bottom->last_frame());
 
                delete touched_regions;
+               touched_regions = 0;
 
                try {
                        switch (c) {