Resolves: tdf#130541 null-deref on detaching already-detached page

Change-Id: Ib48ab91232b8ff624a1387ab82701938eef58ded
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88380
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara 2020-02-10 15:38:42 +00:00
parent 8ed176b2cc
commit 1191a45699

View file

@ -32,7 +32,9 @@ namespace pcr
OBrowserPage::~OBrowserPage()
{
m_pParent->move(m_xContainer.get(), nullptr);
if (m_pParent)
detach();
assert(!m_pParent);
}
} // namespace pcr