Part: Fix dangling pointer in getElementSource()

This commit is contained in:
Chris Hennes
2026-03-08 22:50:47 +01:00
committed by Kacper Donat
parent 0e83500531
commit e807d2d421
+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;