diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-11-09 20:38:39 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-11-09 20:38:39 +0000 |
commit | 0c4c6e031a3624cfc74c2eef6e79527b7c49eca8 (patch) | |
tree | f2f9e7c1184723073075ff1ad4a3f023b1c51399 /libs/ardour/region_factory.cc | |
parent | f7ccc404b38946c89d74e9776226b8ab4f0f6a05 (diff) |
first pass on track mode switch; fixes to dangling region refs after capture; destroy region menu item removed; small fix to SConstruct for missing C++ case; playlist selection mechanism modified ; new Selection operation added (Add); handle crashing situation with align style change handling caused by recursion
git-svn-id: svn://localhost/ardour2/trunk@1099 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/region_factory.cc')
-rw-r--r-- | libs/ardour/region_factory.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/ardour/region_factory.cc b/libs/ardour/region_factory.cc index 313bb31f2a..5bcbdb8b80 100644 --- a/libs/ardour/region_factory.cc +++ b/libs/ardour/region_factory.cc @@ -93,8 +93,7 @@ RegionFactory::create (Session& session, XMLNode& node, bool yn) boost::shared_ptr<Region> RegionFactory::create (SourceList& srcs, nframes_t start, nframes_t length, const string& name, layer_t layer, Region::Flag flags, bool announce) { - AudioRegion* ar = new AudioRegion (srcs, start, length, name, layer, flags); - boost::shared_ptr<AudioRegion> arp (ar); + boost::shared_ptr<AudioRegion> arp (new AudioRegion (srcs, start, length, name, layer, flags)); boost::shared_ptr<Region> ret (boost::static_pointer_cast<Region> (arp)); if (announce) { CheckNewRegion (ret); |