| Index: mandoline/ui/browser/browser.cc
|
| diff --git a/mandoline/ui/browser/browser.cc b/mandoline/ui/browser/browser.cc
|
| index 741346a81b44004054ee77e9573bd7ba816d48d4..452d50c387d485550888e745329eb96b0d12cb09 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) {
|
|
|