| Index: base/crypto/signature_creator_win.cc
|
| ===================================================================
|
| --- base/crypto/signature_creator_win.cc (revision 43354)
|
| +++ base/crypto/signature_creator_win.cc (working copy)
|
| @@ -15,7 +15,7 @@
|
| result->key_ = key;
|
|
|
| if (!CryptCreateHash(key->provider(), CALG_SHA1, 0, 0,
|
| - &result->hash_object_)) {
|
| + result->hash_object_.receive())) {
|
| NOTREACHED();
|
| return NULL;
|
| }
|
| @@ -26,12 +26,6 @@
|
| SignatureCreator::SignatureCreator() : hash_object_(0) {}
|
|
|
| SignatureCreator::~SignatureCreator() {
|
| - if (hash_object_) {
|
| - if (!CryptDestroyHash(hash_object_))
|
| - NOTREACHED();
|
| -
|
| - hash_object_ = 0;
|
| - }
|
| }
|
|
|
| bool SignatureCreator::Update(const uint8* data_part, int data_part_len) {
|
|
|