make dtor order as reverse ctor order

Change-Id: Ia5bff2361006d3dcb1032adef584ceb9910e56fb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138100
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara 2022-08-10 20:21:37 +01:00
parent 89f4bc3b8c
commit 701763ac59

View file

@ -90,12 +90,14 @@ TabBar::~TabBar()
void TabBar::dispose()
{
m_xContainer->move(mxContents.get(), mxTempToplevel.get());
maItems.clear();
mxMeasureBox.reset();
mxSubMenu.reset();
mxMainMenu.reset();
mxMenuButton.reset();
m_xContainer->move(mxContents.get(), mxTempToplevel.get());
mxContents.reset();
mxTempToplevel.reset();
mxAuxBuilder.reset();
InterimItemWindow::dispose();
}