Commit b5928618 authored by Milo Yip's avatar Milo Yip

Merge pull request #112 from pah/fixes/111

Use local typedef to invoke GenericMember's destructor
parents 38889835 db7a5104
......@@ -535,7 +535,7 @@ public:
case kObjectFlag:
for (MemberIterator m = MemberBegin(); m != MemberEnd(); ++m) {
m->~GenericMember();
m->~Member();
}
Allocator::Free(data_.o.members);
break;
......@@ -977,7 +977,7 @@ public:
}
else {
// Only one left, just destroy
m->~GenericMember();
m->~Member();
}
--data_.o.size;
return m;
......
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