Skip to content
Snippets Groups Projects
Commit 8005d5a3 authored by Adam Welc's avatar Adam Welc Committed by Mick Jordan
Browse files

Fixed a problem with RScalar leaking from vector update.

parent b9740132
No related branches found
No related tags found
No related merge requests found
......@@ -215,7 +215,7 @@ final class CachedReplaceVectorNode extends CachedVectorNode {
int replacementLength = positionsCheckNode.getSelectedPositionsCount(positionProfiles);
if (emptyReplacementProfile.profile(replacementLength == 0)) {
/* Nothing to modify */
return vector;
return vector.materialize();
}
if (valueLengthOneProfile.profile(valueLength != 1)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment