Skip to content

Commit

Permalink
Fix a memory leak in RootNode
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Bailey <[email protected]>
  • Loading branch information
danrbailey committed Oct 31, 2024
1 parent ce6bb1c commit f80fc8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openvdb/openvdb/tree/RootNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -2201,7 +2201,7 @@ RootNode<ChildT>::fill(const CoordBBox& bbox, const ValueType& value, bool activ
// with the tile's value and active state.
const Tile& tile = getTile(iter);
child = new ChildT(xyz, tile.value, tile.active);
mTable.emplace(tileMin, *child);
setChild(iter, *child);
} else if (isChild(iter)) {
child = &getChild(iter);
}
Expand Down

0 comments on commit f80fc8f

Please sign in to comment.