mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Free the object list when moving the container
This commit is contained in:
parent
aa0085b57d
commit
fdea2a2e92
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue