| Index: mandoline/ui/browser/browser.cc
|
| diff --git a/mandoline/ui/browser/browser.cc b/mandoline/ui/browser/browser.cc
|
| index 19d0d130331b82d49098117a284138d5855cfb2c..f9191f3ac433575d72159bd266e04290eb701a33 100644
|
| --- a/mandoline/ui/browser/browser.cc
|
| +++ b/mandoline/ui/browser/browser.cc
|
| @@ -40,6 +40,10 @@ Browser::Browser()
|
| }
|
|
|
| Browser::~Browser() {
|
| + // Destruct ui_ manually while |this| is alive and reset the pointer first.
|
| + // This is to avoid a double delete when OnViewManagerDisconnected gets
|
| + // called.
|
| + delete ui_.release();
|
| }
|
|
|
| void Browser::ReplaceContentWithURL(const mojo::String& url) {
|
|
|