| Index: components/safe_browsing_db/v4_database.cc
|
| diff --git a/components/safe_browsing_db/v4_database.cc b/components/safe_browsing_db/v4_database.cc
|
| index 30a3b0f538d5756e5314329a88cdfb9a5f0191dd..4b43498c5abf4bd2139d42ca51ef8528738694ef 100644
|
| --- a/components/safe_browsing_db/v4_database.cc
|
| +++ b/components/safe_browsing_db/v4_database.cc
|
| @@ -142,7 +142,9 @@ void V4Database::UpdatedStoreReady(ListIdentifier identifier,
|
| DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
| DCHECK(pending_store_updates_);
|
| if (new_store) {
|
| - (*store_map_)[identifier] = std::move(new_store);
|
| + (*store_map_)[identifier].swap(new_store);
|
| + // |new_store| now is the store that needs to be destroyed on task runner.
|
| + V4Store::Destroy(std::move(new_store));
|
| }
|
|
|
| pending_store_updates_--;
|
|
|