diff options
| author | levlam <levlam@telegram.org> | 2019-09-05 18:32:45 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2019-09-05 18:32:45 +0300 |
| commit | 6cbc02ed1b19d9651023a054d17125f752f6d56d (patch) | |
| tree | 9e0f03d234a7bf726e28b25cd902526e51ca4ed2 /tdutils/td/utils/ConcurrentHashTable.h | |
| parent | 2fa2e966c905470c375a8656498a318913186671 (diff) | |
Minor improvements.
GitOrigin-RevId: 157e77d244b24f3c5af56539d434096f7440e2e8
Diffstat (limited to 'tdutils/td/utils/ConcurrentHashTable.h')
| -rw-r--r-- | tdutils/td/utils/ConcurrentHashTable.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tdutils/td/utils/ConcurrentHashTable.h b/tdutils/td/utils/ConcurrentHashTable.h index 96a16ed5d..14db1d1e3 100644 --- a/tdutils/td/utils/ConcurrentHashTable.h +++ b/tdutils/td/utils/ConcurrentHashTable.h @@ -109,7 +109,7 @@ class ConcurrentHashMap { ConcurrentHashMap(ConcurrentHashMap &&) = delete; ConcurrentHashMap &operator=(ConcurrentHashMap &&) = delete; ~ConcurrentHashMap() { - unique_ptr<HashMap>(hash_map_.load()); + unique_ptr<HashMap>(hash_map_.load()).reset(); } static std::string get_name() { |
