[Scummvm-cvs-logs] SF.net SVN: scummvm:[39318] scummvm/trunk/engines/sci/scicore/decompressor. h

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Tue Mar 10 23:11:11 CET 2009


Revision: 39318
          http://scummvm.svn.sourceforge.net/scummvm/?rev=39318&view=rev
Author:   lordhoto
Date:     2009-03-10 22:11:11 +0000 (Tue, 10 Mar 2009)

Log Message:
-----------
Made Decompressor's destructor virtual. (fixes compilation and should fix possible leaks)

Modified Paths:
--------------
    scummvm/trunk/engines/sci/scicore/decompressor.h

Modified: scummvm/trunk/engines/sci/scicore/decompressor.h
===================================================================
--- scummvm/trunk/engines/sci/scicore/decompressor.h	2009-03-10 22:09:10 UTC (rev 39317)
+++ scummvm/trunk/engines/sci/scicore/decompressor.h	2009-03-10 22:11:11 UTC (rev 39318)
@@ -47,7 +47,7 @@
 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 @@
 
 } // End of namespace Sci
 
-#endif // SCI_SCICORE_DECOMPRESSOR_H
\ No newline at end of file
+#endif // SCI_SCICORE_DECOMPRESSOR_H
+


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list