diff --git a/Gui/VtkVis/VtkPointsSource.cpp b/Gui/VtkVis/VtkPointsSource.cpp index 68a0336ed1de1209d95a76ad84b7cad3d9e1afbb..477f4cbea370563287a62a3c3a1803a466bb8576 100644 --- a/Gui/VtkVis/VtkPointsSource.cpp +++ b/Gui/VtkVis/VtkPointsSource.cpp @@ -10,6 +10,9 @@ */ // ** INCLUDES ** +// GeoLib +#include "Color.h" + #include "VtkPointsSource.h" #include <vtkCellArray.h> @@ -35,6 +38,7 @@ VtkPointsSource::VtkPointsSource() const GeoLib::Color* c = GeoLib::getRandomColor(); GetProperties()->SetColor((*c)[0] / 255.0,(*c)[1] / 255.0,(*c)[2] / 255.0); + delete c; } void VtkPointsSource::PrintSelf( ostream& os, vtkIndent indent ) diff --git a/Gui/VtkVis/VtkPointsSource.h b/Gui/VtkVis/VtkPointsSource.h index 21c511caf4d208157b17368a72a4c1d610ff447a..0ad5891444d947dfe5cc95f425039d15b49c8067 100644 --- a/Gui/VtkVis/VtkPointsSource.h +++ b/Gui/VtkVis/VtkPointsSource.h @@ -16,7 +16,8 @@ #include "VtkAlgorithmProperties.h" #include <vtkPolyDataAlgorithm.h> -#include "GEOObjects.h" +// GeoLib +#include "Point.h" /** * \brief VtkPointsSource is a VTK source object for the visualization