diff options
-rw-r--r-- | crypto/scoped_nss_types.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/scoped_nss_types.h b/crypto/scoped_nss_types.h index d5aebc5..8e96e8d 100644 --- a/crypto/scoped_nss_types.h +++ b/crypto/scoped_nss_types.h @@ -17,16 +17,14 @@ namespace crypto { template <typename Type, void (*Destroyer)(Type*)> struct NSSDestroyer { void operator()(Type* ptr) const { - if (ptr) - Destroyer(ptr); + Destroyer(ptr); } }; template <typename Type, void (*Destroyer)(Type*, PRBool), PRBool freeit> struct NSSDestroyer1 { void operator()(Type* ptr) const { - if (ptr) - Destroyer(ptr, freeit); + Destroyer(ptr, freeit); } }; |