mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 05:21:16 +00:00
Fix memory leak on TDeletingArray move assignment
This commit is contained in:
parent
c707b418ef
commit
87463ef36b
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue