提交 1566d66a 编写于 作者: J Jason Simmons

Merge pull request #2036 from jason-simmons/card_collection_segfault

Do not delete the DrainJob within the DrainJob::Start callback
......@@ -35,7 +35,7 @@ class DrainJob : public mojo::common::DataPipeDrainer::Client {
void OnDataComplete() override {
Platform::current()->GetUITaskRunner()->PostTask(FROM_HERE,
base::Bind(callback_, buffer_.release()));
delete this;
base::MessageLoop::current()->DeleteSoon(FROM_HERE, this);
}
base::Callback<void(PassRefPtr<SharedBuffer>)> callback_;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册