未验证 提交 bb004431 编写于 作者: J Jackie Tien 提交者: GitHub

call the destructor while memcpy is not safe in the pop_back() function of ObSEArrayImpl (#319)

上级 16b086a7
......@@ -478,6 +478,9 @@ void ObSEArrayImpl<T, LOCAL_ARRAY_SIZE, BlockAllocatorT, auto_free>::pop_back()
{
if (OB_UNLIKELY(count_ <= 0)) {
} else {
if (!is_memcpy_safe()) {
data_[count_ - 1].~T();
}
--count_;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册