diff options
author | Paul Gilbert | 2012-05-04 21:30:45 +1000 |
---|---|---|
committer | Paul Gilbert | 2012-05-04 21:30:45 +1000 |
commit | a75b873fdedd2167b4b6a47b1dd2988ce2e5d11c (patch) | |
tree | 6aec17077c9cfa2e1fdfb7e4ce19f255a7f12da9 /engines/tony/font.h | |
parent | 5b2c69b1f291b1ee3d7f3be4ffd40e427b437ac6 (diff) | |
download | scummvm-rg350-a75b873fdedd2167b4b6a47b1dd2988ce2e5d11c.tar.gz scummvm-rg350-a75b873fdedd2167b4b6a47b1dd2988ce2e5d11c.tar.bz2 scummvm-rg350-a75b873fdedd2167b4b6a47b1dd2988ce2e5d11c.zip |
TONY: Added virtual destructors to classes using virtual methods
Diffstat (limited to 'engines/tony/font.h')
-rw-r--r-- | engines/tony/font.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tony/font.h b/engines/tony/font.h index a8a9aabb19..33332db9f0 100644 --- a/engines/tony/font.h +++ b/engines/tony/font.h @@ -78,8 +78,8 @@ private: public: RMFontPrimitive() : RMGfxPrimitive() {} RMFontPrimitive(RMGfxTask *task) : RMGfxPrimitive(task) {} - - virtual RMGfxPrimitive* Duplicate() { return new RMFontPrimitive(*this); } + virtual ~RMFontPrimitive() { } + virtual RMGfxPrimitive *Duplicate() { return new RMFontPrimitive(*this); } int m_nChar; }; |