Skip to content

Commit

Permalink
call destructor for all items in ~Chunk()
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsippel committed Dec 13, 2023
1 parent b290477 commit 9329093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redGrapes/util/chunked_list.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ struct ChunkedList

~Chunk()
{
for( Item * item = first_item; item <= last_item; item++ )
for( Item * item = first_item; item < ( this->first_item + T_chunk_size ); item++ )
item->~Item();
}

Expand Down

0 comments on commit 9329093

Please sign in to comment.