Part: Fix dangling pointer in getElementSource()
(cherry picked from commit e807d2d421)
This commit is contained in:
committed by
Max Wilfinger
parent
ca910b11b5
commit
98bfeee8f2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user