diff options
Diffstat (limited to 'src/primitives.cc')
-rw-r--r-- | src/primitives.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/primitives.cc b/src/primitives.cc index 187a4ea..2c1cf1f 100644 --- a/src/primitives.cc +++ b/src/primitives.cc @@ -509,8 +509,8 @@ sphere_next_r2: double x,y; if (!this->points.vec[i]->getv2(x, y)) { PRINTF("ERROR: Unable to convert point at index %d to a vec2 of numbers", i); - // FIXME: Return NULL and make sure this is checked by all callers? - return p; + p->unlink(); + return NULL; } dd.points.append(DxfData::Point(x, y)); } |