未验证 提交 db212bb9 编写于 作者: T tangwei12 提交者: GitHub

delete AllocatorFacade destructor (#18606)

* delete m, test=develop
上级 995d7d86
...@@ -295,7 +295,9 @@ class AllocatorFacadePrivate { ...@@ -295,7 +295,9 @@ class AllocatorFacadePrivate {
// Pimpl. Make interface clean. // Pimpl. Make interface clean.
AllocatorFacade::AllocatorFacade() : m_(new AllocatorFacadePrivate()) {} AllocatorFacade::AllocatorFacade() : m_(new AllocatorFacadePrivate()) {}
AllocatorFacade::~AllocatorFacade() { delete m_; } // delete m_ may cause core dump when the destructor of python in conflict with
// cpp.
AllocatorFacade::~AllocatorFacade() {}
AllocatorFacade& AllocatorFacade::Instance() { AllocatorFacade& AllocatorFacade::Instance() {
static AllocatorFacade instance; static AllocatorFacade instance;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册