Kaydet (Commit) 4f72ab02 authored tarafından Michael Meeks's avatar Michael Meeks

nail more lifecycle oddness.

Change-Id: Ibc29b488cf5077f1d5eb996a8d88dfd057de8266
üst 4f386d07
...@@ -330,6 +330,7 @@ void MediaWindow::executeFormatErrorBox( vcl::Window* pParent ) ...@@ -330,6 +330,7 @@ void MediaWindow::executeFormatErrorBox( vcl::Window* pParent )
VclPtr<MessageDialog> aErrBox(new MessageDialog( pParent, AVMEDIA_RESID( AVMEDIA_STR_ERR_URL ) ) ); VclPtr<MessageDialog> aErrBox(new MessageDialog( pParent, AVMEDIA_RESID( AVMEDIA_STR_ERR_URL ) ) );
aErrBox->Execute(); aErrBox->Execute();
aErrBox.disposeAndClear();
} }
......
...@@ -176,7 +176,7 @@ ScTabView::~ScTabView() ...@@ -176,7 +176,7 @@ ScTabView::~ScTabView()
delete pSelEngine; delete pSelEngine;
// Delete this before the grid windows, since it's a child window of one of them. // Delete this before the grid windows, since it's a child window of one of them.
mpInputHintWindow.reset(); mpInputHintWindow.disposeAndClear();
for (i=0; i<4; i++) for (i=0; i<4; i++)
pGridWin[i].disposeAndClear(); pGridWin[i].disposeAndClear();
...@@ -190,6 +190,14 @@ ScTabView::~ScTabView() ...@@ -190,6 +190,14 @@ ScTabView::~ScTabView()
pRowOutline[i].disposeAndClear(); pRowOutline[i].disposeAndClear();
} }
aScrollBarBox.disposeAndClear();
aCornerButton.disposeAndClear();
aTopButton.disposeAndClear();
aHScrollLeft.disposeAndClear();
aHScrollRight.disposeAndClear();
aVScrollTop.disposeAndClear();
aVScrollBottom.disposeAndClear();
pHSplitter.disposeAndClear(); pHSplitter.disposeAndClear();
pVSplitter.disposeAndClear(); pVSplitter.disposeAndClear();
pTabControl.disposeAndClear(); pTabControl.disposeAndClear();
......
...@@ -167,8 +167,8 @@ void ViewTabBar::disposing (void) ...@@ -167,8 +167,8 @@ void ViewTabBar::disposing (void)
// Set all references to the one tab page to NULL and delete the page. // Set all references to the one tab page to NULL and delete the page.
for (sal_uInt16 nIndex=0; nIndex<mpTabControl->GetPageCount(); ++nIndex) for (sal_uInt16 nIndex=0; nIndex<mpTabControl->GetPageCount(); ++nIndex)
mpTabControl->SetTabPage(nIndex, NULL); mpTabControl->SetTabPage(nIndex, NULL);
mpTabPage.reset(); mpTabPage.disposeAndClear();
mpTabControl.reset(); mpTabControl.disposeAndClear();
} }
mxController = NULL; mxController = NULL;
......
...@@ -2786,6 +2786,7 @@ Size Edit::GetMinimumEditSize() ...@@ -2786,6 +2786,7 @@ Size Edit::GetMinimumEditSize()
vcl::Window* pDefWin = ImplGetDefaultWindow(); vcl::Window* pDefWin = ImplGetDefaultWindow();
VclPtr<Edit> aEdit(new Edit( pDefWin, WB_BORDER ) ); VclPtr<Edit> aEdit(new Edit( pDefWin, WB_BORDER ) );
Size aSize( aEdit->CalcMinimumSize() ); Size aSize( aEdit->CalcMinimumSize() );
aEdit.disposeAndClear();
return aSize; return aSize;
} }
......
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