Commit 594f8100 authored by Adam Cozzette's avatar Adam Cozzette Committed by GitHub

Merge pull request #2982 from mda000/issue2972

Simplify the Element dtor invocation when freeing elements in InternalDeallocate
parents a3873caf 2240a785
......@@ -291,7 +291,7 @@ class RepeatedField PROTOBUF_FINAL {
Element* e = &rep->elements[0];
Element* limit = &rep->elements[size];
for (; e < limit; e++) {
e->Element::~Element();
e->~Element();
}
if (rep->arena == NULL) {
#if defined(__GXX_DELETE_WITH_SIZE__) || defined(__cpp_sized_deallocation)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment