Check weak ptr before using it
This commit is contained in:
parent
384b03d49b
commit
c2aa312e0c
1 changed files with 2 additions and 1 deletions
|
@ -205,7 +205,8 @@ void BrowserWindow::DidFirstVisuallyNonEmptyPaint() {
|
|||
base::ThreadTaskRunnerHandle::Get()->PostTask(
|
||||
FROM_HERE,
|
||||
base::Bind([](base::WeakPtr<BrowserWindow> self) {
|
||||
self->Emit("ready-to-show");
|
||||
if (self)
|
||||
self->Emit("ready-to-show");
|
||||
}, GetWeakPtr()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue