mirror of
https://github.com/luau-lang/luau.git
synced 2025-01-19 17:28:06 +00:00
resolve memory leak in VecDeque
This commit is contained in:
parent
2f7509dedd
commit
38aa074767
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ private:
|
|||
size_t tail_size = queue_size - head_size; // how many elements are in the tail portion (i.e. any portion that wrapped to the front)
|
||||
|
||||
// we have to destroy every element in the head portion
|
||||
for (size_t index = head; index < head_size; index++)
|
||||
for (size_t index = head; index < head + head_size; index++)
|
||||
buffer[index].~T();
|
||||
|
||||
// and any in the tail portion, if one exists
|
||||
|
|
Loading…
Reference in a new issue