Free the object list when moving the container

This commit is contained in:
smallmodel 2025-01-31 22:46:35 +01:00
parent aa0085b57d
commit fdea2a2e92
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -164,6 +164,8 @@ Container<Type>::Container(Container<Type>&& container)
template<class Type>
Container<Type>& Container<Type>::operator=(Container<Type>&& container)
{
FreeObjectList();
objlist = container.objlist;
numobjects = container.numobjects;
maxobjects = container.maxobjects;