Kaydet (Commit) 739f3a5c authored tarafından Michael Meeks's avatar Michael Meeks

mend misc. lifecycle breakage.

Change-Id: I6e960db9659f5122a45c4cf173e680bb782acf76
üst f583322c
......@@ -508,12 +508,14 @@ void MediaWindowImpl::onURLChanged()
{
if( m_sMimeType == AVMEDIA_MIMETYPE_COMMON )
{
mpChildWindow.disposeAndClear();
mpChildWindow.reset(new MediaChildWindow(this) );
}
#if HAVE_FEATURE_GLTF
else if ( m_sMimeType == AVMEDIA_MIMETYPE_JSON )
{
SystemWindowData aWinData = OpenGLContext::generateWinData(this, false);
mpChildWindow.disposeAndClear();
mpChildWindow.reset(new MediaChildWindow(this,&aWinData));
mbEventTransparent = false;
}
......
......@@ -240,7 +240,7 @@ ViewShellBase::ViewShellBase (
mpDocument (NULL)
{
mpImpl.reset(new Implementation(*this));
mpImpl->mpViewWindow.reset(new FocusForwardingWindow(_pFrame->GetWindow(),*this));
mpImpl->mpViewWindow = new FocusForwardingWindow(_pFrame->GetWindow(),*this);
mpImpl->mpViewWindow->SetBackground(Wallpaper());
_pFrame->GetWindow().SetBackground(Application::GetSettings().GetStyleSettings().GetLightColor());
......@@ -1028,7 +1028,7 @@ ViewShellBase::Implementation::~Implementation (void)
{
mpController = NULL;
mpViewTabBar = NULL;
mpViewWindow.reset();
mpViewWindow.disposeAndClear();
mpToolBarManager.reset();
}
......
......@@ -191,6 +191,8 @@ DrawViewShell::~DrawViewShell()
mpFrameView->Disconnect();
delete [] mpSlotArray;
maTabControl.disposeAndClear();
}
/**
......
......@@ -151,7 +151,7 @@ ViewShell::~ViewShell()
delete mpZoomList;
mpLayerTabBar.reset();
mpLayerTabBar.disposeAndClear();
if (mpImpl->mpSubShellFactory.get() != NULL)
GetViewShellBase().GetViewShellManager()->RemoveSubShellFactory(
......@@ -163,8 +163,14 @@ ViewShell::~ViewShell()
"sd.ui",
"destroying mpContentWindow at " << mpContentWindow.get()
<< " with parent " << mpContentWindow->GetParent());
mpContentWindow.reset();
mpContentWindow.disposeAndClear();
}
mpScrollBarBox.disposeAndClear();
mpVerticalRuler.disposeAndClear();
mpHorizontalRuler.disposeAndClear();
mpVerticalScrollBar.disposeAndClear();
mpHorizontalScrollBar.disposeAndClear();
}
/**
......
......@@ -338,15 +338,7 @@ struct TabBar_Impl
svt::AccessibleFactoryAccess maAccessibleFactory;
TabBar_Impl()
: mpSizer()
, mpFirstButton()
, mpPrevButton()
, mpNextButton()
, mpLastButton()
, mpEdit()
, mpItemList()
{}
TabBar_Impl() {}
~TabBar_Impl()
{
......@@ -367,6 +359,10 @@ struct TabBar_Impl
{
return static_cast<sal_uInt16>(mpItemList.size());
}
~TabBar_Impl()
{
mpSizer.disposeAndClear();
}
};
TabBar::TabBar( vcl::Window* pParent, WinBits nWinStyle ) :
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment