mirror of
https://github.com/thoughtbot/capybara-webkit
synced 2023-03-27 23:22:28 -04:00
Use deleteLater to avoid possible null pointer crashes
This commit is contained in:
parent
e0172bfcd9
commit
cddba4c9e1
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ void WebPageManager::reset() {
|
|||
m_currentPage->resetLocalStorage();
|
||||
while (!m_pages.isEmpty()) {
|
||||
WebPage *page = m_pages.takeFirst();
|
||||
delete page;
|
||||
page->deleteLater();
|
||||
}
|
||||
createPage()->setFocus();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue