mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-25 16:07:49 +01:00
don't cadd a potentially null region from inside RegionFactory::create()
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3426 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
688c7a199a
commit
02ddd35fc9
1 changed files with 5 additions and 1 deletions
|
|
@ -85,7 +85,11 @@ boost::shared_ptr<Region>
|
|||
RegionFactory::create (Session& session, XMLNode& node, bool yn)
|
||||
{
|
||||
boost::shared_ptr<Region> r = session.XMLRegionFactory (node, yn);
|
||||
CheckNewRegion (r);
|
||||
|
||||
if (r) {
|
||||
CheckNewRegion (r);
|
||||
}
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue