From ed2a7c380d164223d89d5ab78bd7d473b65daef5 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 23 May 2011 10:03:29 +0000 Subject: [PATCH] Fix bit rot with boost shared_ptr debugging code. git-svn-id: svn://localhost/ardour2/branches/3.0@9572 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/session_state.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 02aee5d3ef..02d3407417 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -566,7 +566,7 @@ Session::create (const string& mix_template, BusProfile* bus_profile) return -1; } #ifdef BOOST_SP_ENABLE_DEBUG_HOOKS - boost_debug_shared_ptr_mark_interesting (rt.get(), "Route"); + boost_debug_shared_ptr_mark_interesting (r.get(), "Route"); #endif { Glib::Mutex::Lock lm (AudioEngine::instance()->process_lock ()); @@ -583,7 +583,7 @@ Session::create (const string& mix_template, BusProfile* bus_profile) return -1; } #ifdef BOOST_SP_ENABLE_DEBUG_HOOKS - boost_debug_shared_ptr_mark_interesting (rt, "Route"); + boost_debug_shared_ptr_mark_interesting (r.get(), "Route"); #endif { Glib::Mutex::Lock lm (AudioEngine::instance()->process_lock ()); @@ -1578,7 +1578,7 @@ Session::XMLRouteFactory_2X (const XMLNode& node, int version) if (r->init () == 0 && r->set_state (node, version) == 0) { #ifdef BOOST_SP_ENABLE_DEBUG_HOOKS - boost_debug_shared_ptr_mark_interesting (rt, "Route"); + boost_debug_shared_ptr_mark_interesting (r.get(), "Route"); #endif ret = r; }