Commit d3f7ee09 authored by Ge Jun's avatar Ge Jun

ThriftDoneWrapper.Run deletes itself

parent b494b28d
...@@ -187,7 +187,10 @@ class ThriftDoneWrapper : public ::google::protobuf::Closure { ...@@ -187,7 +187,10 @@ class ThriftDoneWrapper : public ::google::protobuf::Closure {
public: public:
explicit ThriftDoneWrapper(::google::protobuf::Closure* done) explicit ThriftDoneWrapper(::google::protobuf::Closure* done)
: _done(done) {} : _done(done) {}
void Run() override { _done->Run(); } void Run() override {
_done->Run();
delete this;
}
private: private:
::google::protobuf::Closure* _done; ::google::protobuf::Closure* _done;
public: public:
......
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