Skip to content

Commit 3e59ff8

Browse files
committed
Fixed a lifetime bug which could cause a segfault with a destructed std::function
Signed-off-by: Nick Avramoussis <[email protected]>
1 parent 1e47666 commit 3e59ff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openvdb/openvdb/points/PointReplicate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ replicate(const PointDataGridT& source,
116116
private:
117117
Index mIt, mEnd, mSource;
118118
const Index mSourceEnd;
119-
const GetIncrementCB& mCallback;
119+
const GetIncrementCB mCallback;
120120
}; // struct CopyIter
121121

122122

0 commit comments

Comments
 (0)