From 6495b595c4953ce29e66ff4919d69a74300c3532 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 16 Nov 2011 11:32:01 -0500 Subject: cmCryptoHash: Add virtual destructor Instances of this class are always subclasses. Use a virtual destructor to ensure the subclasses cleanup correctly. --- Source/cmCryptoHash.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/cmCryptoHash.h b/Source/cmCryptoHash.h index 0a33365..1bea9ab 100644 --- a/Source/cmCryptoHash.h +++ b/Source/cmCryptoHash.h @@ -19,6 +19,7 @@ class cmCryptoHash { public: + virtual ~cmCryptoHash() {} static cmsys::auto_ptr New(const char* algo); std::string HashString(const char* input); std::string HashFile(const char* file); -- cgit v0.12