فهرست منبع

AK: Fix leak in HashTable move assignment operator.

Andreas Kling 6 سال پیش
والد
کامیت
e88c8eae6a
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      AK/HashTable.h

+ 1 - 0
AK/HashTable.h

@@ -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;