diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-11 22:42:00 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-12 09:10:03 +0100 |
commit | 90e9a26aa5be3cbb286fd8363623284d49b6edc9 (patch) | |
tree | 2d38ebc7ff622ec97a11022172d16ee7df32416e /cppcanvas | |
parent | b55910d9ba6b57b621be638917b934300b8f7df3 (diff) |
make base class dtor virtual
otherwise calling delete on a base class pointer to an instantiation of a
derived class doesn't call the derived class's dtor
Diffstat (limited to 'cppcanvas')
-rw-r--r-- | cppcanvas/source/mtfrenderer/emfplus.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx index b8e0a5c067ff..88755c506282 100644 --- a/cppcanvas/source/mtfrenderer/emfplus.cxx +++ b/cppcanvas/source/mtfrenderer/emfplus.cxx @@ -120,6 +120,7 @@ namespace cppcanvas struct EMFPObject { + virtual ~EMFPObject() {} }; struct EMFPPath : public EMFPObject |