Skip to content

Commit

Permalink
Fix segfault in mls::performUpsampling
Browse files Browse the repository at this point in the history
  • Loading branch information
mvieth committed Oct 19, 2022
1 parent df0275b commit 2b818b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion surface/include/pcl/surface/impl/mls.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ pcl::MovingLeastSquares<PointInT, PointOutT>::process (PointCloudOut &output)
// Reset or initialize the collection of indices
corresponding_input_indices_.reset (new PointIndices);

normals_.reset (new NormalCloud); // always init this since it is dereferenced in performUpsampling
// Check if normals have to be computed/saved
if (compute_normals_)
{
normals_.reset (new NormalCloud);
// Copy the header
normals_->header = input_->header;
// Clear the fields in case the method exits before computation
Expand Down

0 comments on commit 2b818b4

Please sign in to comment.