Index: base/openssl_util.h |
diff --git a/base/openssl_util.h b/base/openssl_util.h |
index 60cb0b7221182068ee97874e1e2e0e6db102758a..9ce7f81767f0caddc43522571e8986df6b280a5e 100644 |
--- a/base/openssl_util.h |
+++ b/base/openssl_util.h |
@@ -18,7 +18,9 @@ class ScopedOpenSSL { |
public: |
ScopedOpenSSL() : ptr_(NULL) { } |
explicit ScopedOpenSSL(T* ptr) : ptr_(ptr) { } |
- ~ScopedOpenSSL() { if (ptr_) (*destructor)(ptr_); } |
+ ~ScopedOpenSSL() { |
+ reset(NULL); |
+ } |
T* get() const { return ptr_; } |
void reset(T* ptr) { |