PointCloudLibrary/pcl — pull request #85 by tcavallari (2013-05-15 12:12:39+00:00)
Title: Fix: now the PCLVisualizer.close() method actually closes the window.

I've noticed that invoking the close() method on a PCLVisualizer does not properly close the window as can be seen running the following code snippet:

```c++
#include
#include

int main (int argc, char ** argv)
{
pcl::PointCloud::Ptr cloud (new pcl::PointCloud());
pcl::io::loadPCDFile("bunny.pcd", *cloud);
{
pcl::visualization::PCLVisualizer viewer;
viewer.addPointCloud(cloud);
viewer.spin();
viewer.close(); // the window does not close
}
{
pcl::visualization::PCLVisualizer viewer;
viewer.addPointCloud(cloud);
viewer.spin();
viewer.close();
}
// both windows close now because the program terminates
}
```

This fix is inspired by the VTK tutorial code that can be found at http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CloseWindow

Cheers!
Tommaso