diff --git a/include/opendb/geom.h b/include/opendb/geom.h index 1d7a4e8..165ed11 100644 --- a/include/opendb/geom.h +++ b/include/opendb/geom.h @@ -136,7 +136,7 @@ class GeomShape virtual int xMax() const = 0; virtual int yMax() const = 0; virtual std::vector getPoints() const = 0; - ~GeomShape() = default; + virtual ~GeomShape() = default; }; /* diff --git a/src/db/dbBox.h b/src/db/dbBox.h index 96e2329..f0a2ceb 100644 --- a/src/db/dbBox.h +++ b/src/db/dbBox.h @@ -71,6 +71,7 @@ class _dbBox : public _dbObject union dbBoxShape{ Rect _rect; Oct _oct; + ~dbBoxShape(){}; }; // PERSISTANT-MEMBERS