summaryrefslogtreecommitdiff
path: root/libs/ardour/region.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2006-10-20 20:16:49 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2006-10-20 20:16:49 +0000
commit273d9fa8d6fc7fb0c16f805933040ed5962ff3d5 (patch)
tree2e98a4dd34a9f5a51b3bc3987402923898456a2b /libs/ardour/region.cc
parent3e577fee98555166cc92b78af3e8873e3cabb7d6 (diff)
fixes for shared_ptr from this errors in Region, mostly for testing by Sampo (other debugging work is ongoing). oh yes, fix for AudioRegion::apply_filter() too, previously crash bug
git-svn-id: svn://localhost/ardour2/trunk@997 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/region.cc')
-rw-r--r--libs/ardour/region.cc13
1 files changed, 8 insertions, 5 deletions
diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc
index 3a31fe254c..6e6af0ee11 100644
--- a/libs/ardour/region.cc
+++ b/libs/ardour/region.cc
@@ -28,6 +28,7 @@
#include <glibmm/thread.h>
#include <pbd/xml++.h>
+#include <pbd/stacktrace.h>
#include <ardour/region.h>
#include <ardour/playlist.h>
@@ -143,6 +144,8 @@ Region::Region (const XMLNode& node)
Region::~Region ()
{
+ // cerr << "====== " << _name << " DESTRUCTOR\n";
+ // stacktrace (cerr);
/* derived classes must call notify_callbacks() and then emit GoingAway */
}
@@ -278,7 +281,7 @@ Region::set_position_on_top (nframes_t pos, void *src)
_position = pos;
}
- _playlist->raise_region_to_top (boost::shared_ptr<Region>(this));
+ _playlist->raise_region_to_top (shared_from_this ());
/* do this even if the position is the same. this helps out
a GUI that has moved its representation already.
@@ -669,7 +672,7 @@ Region::raise ()
return;
}
- _playlist->raise_region (boost::shared_ptr<Region>(this));
+ _playlist->raise_region (shared_from_this ());
}
void
@@ -679,7 +682,7 @@ Region::lower ()
return;
}
- _playlist->lower_region (boost::shared_ptr<Region>(this));
+ _playlist->lower_region (shared_from_this ());
}
void
@@ -690,7 +693,7 @@ Region::raise_to_top ()
return;
}
- _playlist->raise_region_to_top (boost::shared_ptr<Region>(this));
+ _playlist->raise_region_to_top (shared_from_this());
}
void
@@ -700,7 +703,7 @@ Region::lower_to_bottom ()
return;
}
- _playlist->lower_region_to_bottom (boost::shared_ptr<Region>(this));
+ _playlist->lower_region_to_bottom (shared_from_this());
}
void