summaryrefslogtreecommitdiff
path: root/libs/ardour/butler.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-04-14 23:58:20 +0000
committerCarl Hetherington <carl@carlh.net>2010-04-14 23:58:20 +0000
commit84e92060fd0593adcd47c39b358048715ece9c7a (patch)
treece22806736ff7f7fc5f47dfd029f9d8a2b758a13 /libs/ardour/butler.cc
parent7939dd9399e8e86b579bbddeba73d997ec6cf1b7 (diff)
Prevent crash in pool destruction during session teardown.
git-svn-id: svn://localhost/ardour2/branches/3.0@6905 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/butler.cc')
-rw-r--r--libs/ardour/butler.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/ardour/butler.cc b/libs/ardour/butler.cc
index 8b88197073..b201960e0e 100644
--- a/libs/ardour/butler.cc
+++ b/libs/ardour/butler.cc
@@ -428,5 +428,12 @@ Butler::empty_pool_trash ()
}
}
+void
+Butler::drop_references ()
+{
+ SessionEvent::pool->set_trash (0);
+}
+
+
} // namespace ARDOUR