From ab58c894d391086dfdb1762408cc6c1fa9b2383e Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 25 Dec 2019 17:59:38 +0100 Subject: Use weak-ptr for source added/removed signals (1/2) This might fix a "SessionHandleRef exists across session deletion", when the shared_ptr was be pushed onto a x-thread pool, and not invalidated in time before the session was closed. --- libs/ardour/ardour/session.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/ardour/ardour/session.h') diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index 9326c9b948..3b15c2d7e2 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -1783,8 +1783,8 @@ private: public: /* Emited when a new source is added to the session */ - PBD::Signal1< void, boost::shared_ptr > SourceAdded; - PBD::Signal1< void, boost::shared_ptr > SourceRemoved; + PBD::Signal1< void, boost::weak_ptr > SourceAdded; + PBD::Signal1< void, boost::weak_ptr > SourceRemoved; typedef std::map > SourceMap; -- cgit v1.2.3