cmCryptoHash: Add virtual destructor

Instances of this class are always subclasses.  Use a virtual destructor
to ensure the subclasses cleanup correctly.
This commit is contained in:
Brad King 2011-11-16 11:32:01 -05:00
parent 8302608a74
commit 6495b595c4
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@
class cmCryptoHash
{
public:
virtual ~cmCryptoHash() {}
static cmsys::auto_ptr<cmCryptoHash> New(const char* algo);
std::string HashString(const char* input);
std::string HashFile(const char* file);