Code

Add virtual to a lot of the destructors. Note: perhaps it will have to be reverted...
[inkscape.git] / src / display / nr-arena-shape.h
index d36815a74a00acab6c5f380cd0cfce4d247791a3..b371d2ede57bf331b7de6b3c6cb1ff0ace1d4368 100644 (file)
@@ -40,7 +40,7 @@ struct NRArenaShape : public NRArenaItem {
 
         Paint() : _type(NONE), _color(0), _server(NULL) {}
         Paint(Paint const &p) { _assign(p); }
-        ~Paint() { clear(); }
+        virtual ~Paint() { clear(); }
 
         Type type() const { return _type; }
         SPPaintServer *server() const { return _server; }