From b4ef8aba75262374a3446f5edbb75f17305e6d88 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Tue, 10 Mar 2009 22:11:11 +0000 Subject: Made Decompressor's destructor virtual. (fixes compilation and should fix possible leaks) svn-id: r39318 --- engines/sci/scicore/decompressor.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engines/sci/scicore/decompressor.h') diff --git a/engines/sci/scicore/decompressor.h b/engines/sci/scicore/decompressor.h index 3f8bd147c3..b2a6831a9b 100644 --- a/engines/sci/scicore/decompressor.h +++ b/engines/sci/scicore/decompressor.h @@ -47,7 +47,7 @@ enum ResourceCompression { class Decompressor { public: Decompressor(){} - ~Decompressor(){} + virtual ~Decompressor(){} //! get a number of bits from _src stream /** @param n - number of bits to get @@ -176,4 +176,5 @@ protected: } // End of namespace Sci -#endif // SCI_SCICORE_DECOMPRESSOR_H \ No newline at end of file +#endif // SCI_SCICORE_DECOMPRESSOR_H + -- cgit v1.2.3