Part: Fix dangling pointer in getElementSource()

(cherry picked from commit e807d2d421)
This commit is contained in:
Chris Hennes
2026-03-09 07:29:27 +01:00
committed by Max Wilfinger
parent ca910b11b5
commit 98bfeee8f2
+2
View File
@@ -582,6 +582,8 @@ static std::vector<std::pair<long, Data::MappedName>> getElementSource(
}
break;
}
// "Compact" makes an owned copy to ensure we don't have a dangling point later on
original.compact();
ret.emplace_back(tag, original);
}
return ret;