1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 07:14:58 +00:00

AK: Fix leak in HashTable move assignment operator.

This commit is contained in:
Andreas Kling 2019-02-04 08:53:12 +01:00
parent b51031bb54
commit e88c8eae6a

View file

@ -33,6 +33,7 @@ public:
HashTable& operator=(HashTable&& other)
{
if (this != &other) {
clear();
m_buckets = other.m_buckets;
m_size = other.m_size;
m_capacity = other.m_capacity;