diff options
| author | Marius Kintel <marius@kintel.net> | 2011-08-31 10:32:36 (GMT) | 
|---|---|---|
| committer | Marius Kintel <marius@kintel.net> | 2011-08-31 10:32:36 (GMT) | 
| commit | 5911e60fcd586826b0c37ef688459947dfc0c83b (patch) | |
| tree | a0adb3b20a3fa4eee12f981f8e4693563b28304c /src | |
| parent | eff40027290f8dff6574ebb8f9058a0d2645f96d (diff) | |
bugfix: deleted uninitialized pointer. Found and fixed by Daid
Diffstat (limited to 'src')
| -rw-r--r-- | src/cgalrenderer.cc | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/src/cgalrenderer.cc b/src/cgalrenderer.cc index 551c061..ef44b6a 100644 --- a/src/cgalrenderer.cc +++ b/src/cgalrenderer.cc @@ -36,11 +36,13 @@ CGALRenderer::CGALRenderer(const CGAL_Nef_polyhedron &root) : root(root)  {  	if (root.dim == 2) {  		DxfData dd(root); +		this->polyhedron = NULL;  		this->polyset = new PolySet();  		this->polyset->is2d = true;  		dxf_tesselate(this->polyset, &dd, 0, true, false, 0);  	}  	else if (root.dim == 3) { +		this->polyset = NULL;  		this->polyhedron = new Polyhedron();      // FIXME: Make independent of Preferences  		this->polyhedron->setColor(Polyhedron::CGAL_NEF3_MARKED_FACET_COLOR, @@ -60,6 +62,7 @@ CGALRenderer::CGALRenderer(const CGAL_Nef_polyhedron &root) : root(root)  CGALRenderer::~CGALRenderer()  {  	if (this->polyset) this->polyset->unlink(); +	delete this->polyhedron;  }  void CGALRenderer::draw(bool showfaces, bool showedges) const | 
