| Index: mojo/public/cpp/bindings/interface_impl.h
|
| diff --git a/mojo/public/cpp/bindings/interface_impl.h b/mojo/public/cpp/bindings/interface_impl.h
|
| index 74f541ea5fb4d308947fcf7354258bed3e9cf4ba..9afd1923367248d1aeff25a54a4fb26e9a63727c 100644
|
| --- a/mojo/public/cpp/bindings/interface_impl.h
|
| +++ b/mojo/public/cpp/bindings/interface_impl.h
|
| @@ -59,8 +59,9 @@ class InterfaceImpl : public Interface, public ErrorHandler {
|
|
|
| // ErrorHandler implementation:
|
| void OnConnectionError() override {
|
| + bool delete_on_error = delete_on_error_;
|
| impl_->OnConnectionError();
|
| - if (delete_on_error_)
|
| + if (delete_on_error)
|
| delete impl_;
|
| }
|
|
|
|
|