Skip to content

Commit

Permalink
Merge pull request #25726 from RomanPudashkin/guitar_bend_crash
Browse files Browse the repository at this point in the history
guitar_bend_crash
  • Loading branch information
DmitryArefiev authored Dec 4, 2024
2 parents e997c60 + c840820 commit 078ab4d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/engraving/dom/spanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1528,6 +1528,18 @@ bool Spanner::isUserModified() const

void Spanner::eraseSpannerSegments()
{
for (SpannerSegment* seg : m_segments) {
if (System* system = seg->system()) {
system->remove(seg);
}
}

for (SpannerSegment* seg : m_unusedSegments) {
if (System* system = seg->system()) {
system->remove(seg);
}
}

muse::DeleteAll(m_segments);
muse::DeleteAll(m_unusedSegments);
m_segments.clear();
Expand Down

0 comments on commit 078ab4d

Please sign in to comment.