提交 32cd9ca0 编写于 作者: M Megvii Engine Team

fix(mgb): remove unnecessary null pointer checks

GitOrigin-RevId: 85aa0a9bdb0f329d87b82fed4451094b002fdc85
上级 4abe026b
......@@ -106,10 +106,8 @@ FilterEngine<ST, FT>::FilterEngine(BaseRowFilter* row_filter,
template <typename ST, typename FT>
FilterEngine<ST, FT>::~FilterEngine() {
if (m_row_filter != NULL)
delete m_row_filter;
if (m_column_filter != NULL)
delete m_column_filter;
delete m_row_filter;
delete m_column_filter;
}
template <typename ST, typename FT>
......
......@@ -25,9 +25,7 @@ HalideExecutable::FunctionHandle::~FunctionHandle() {
device_release(i.second);
}
}
if (uctx_map) {
delete uctx_map;
}
delete uctx_map;
if (dl_handle) {
ExecutableHelper::get().unload_lib(dl_handle);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册