fix #40016: Crash when closing score
This commit is contained in:
parent
f3071ac9d0
commit
a68454ece6
4 changed files with 2 additions and 9 deletions
|
@ -46,8 +46,6 @@ DurationElement::DurationElement(const DurationElement& e)
|
|||
|
||||
DurationElement::~DurationElement()
|
||||
{
|
||||
if (tuplet() && !tuplet()->elements().isEmpty() && tuplet()->elements().front() == this)
|
||||
delete tuplet();
|
||||
}
|
||||
|
||||
//---------------------------------------------------------
|
||||
|
|
|
@ -88,7 +88,7 @@ public:
|
|||
Segment* _prev;
|
||||
|
||||
mutable bool empty; // cached value
|
||||
mutable bool _written; // used for write()
|
||||
mutable bool _written { false }; // used for write()
|
||||
|
||||
Type _segmentType { Type::Invalid };
|
||||
int _tick;
|
||||
|
|
|
@ -72,11 +72,6 @@ Tuplet::Tuplet(const Tuplet& t)
|
|||
|
||||
Tuplet::~Tuplet()
|
||||
{
|
||||
//
|
||||
// delete all references
|
||||
//
|
||||
foreach(DurationElement* e, _elements)
|
||||
e->setTuplet(0);
|
||||
delete _number;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue