Part: Fix dangling pointer in getElementSource()
This commit is contained in:
committed by
Kacper Donat
parent
0e83500531
commit
e807d2d421
@@ -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