Fix bit rot with boost shared_ptr debugging code.

git-svn-id: svn://localhost/ardour2/branches/3.0@9572 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington
2011-05-23 10:03:29 +00:00
parent 32df620938
commit ed2a7c380d

View File

@@ -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;
}