Initialize shared pointers before use

Should address runtime errors reported in #29
This commit is contained in:
William Woodall
2013-07-23 13:32:50 -07:00
committed by Paul Bovbel
parent fd75f3a02c
commit 11d24d0e97
6 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ pcl_ros::VoxelGrid::filter (const PointCloud2::ConstPtr &input,
PointCloud2 &output)
{
boost::mutex::scoped_lock lock (mutex_);
pcl::PCLPointCloud2::Ptr pcl_input;
pcl::PCLPointCloud2::Ptr pcl_input(new pcl::PCLPointCloud2);
pcl_conversions::toPCL (*(input), *(pcl_input));
impl_.setInputCloud (pcl_input);
impl_.setIndices (indices);