Fix memory leak on TDeletingArray move assignment

This commit is contained in:
Ricardo Luís Vaz Silva 2024-05-31 03:02:50 -03:00
parent c707b418ef
commit 87463ef36b

View file

@ -919,6 +919,7 @@ public:
TDeletingArray(TDeletingArray<T,TT> &&other) : TArray<T,TT>(std::move(other)) {}
TDeletingArray<T,TT> &operator=(TDeletingArray<T,TT> &&other)
{
DeleteAndClear();
TArray<T,TT>::operator=(std::move(other));
return *this;
}