Kaydet (Commit) 07341af4 authored tarafından Michael Stahl's avatar Michael Stahl

svx: assert on undisposed AbstractSvxHpLinkDlg

3  in () at /lib64/libc.so.6
4  in VclPtr<AbstractSvxHpLinkDlg>::~VclPtr() (this=0x88d47e8, __in_chrg=<optimized out>) at include/vcl/vclptr.hxx:115
5  in SvxHlinkDlgWrapper::~SvxHlinkDlgWrapper() (this=0x88d47a0, __in_chrg=<optimized out>) at include/svx/hyperdlg.hxx:34
6  in SvxHlinkDlgWrapper::~SvxHlinkDlgWrapper() (this=0x88d47a0, __in_chrg=<optimized out>) at include/svx/hyperdlg.hxx:34
7  in SfxChildWindow::Destroy() (this=0x88d47a0) at sfx2/source/appl/childwin.cxx:182
8  in SfxWorkWindow::RemoveChildWin_Impl(SfxChildWin_Impl*) (this=0x6c83940, pCW=0x683bc20) at sfx2/source/appl/workwin.cxx:1425
9  in SfxWorkWindow::ToggleChildWindow_Impl(unsigned short, bool) (this=0x6c83940, nId=5678, bSetFocus=true) at sfx2/source/appl/workwin.cxx:1832
10 in SfxViewFrame::ToggleChildWindow(unsigned short) (this=0x6afdae0, nId=5678) at sfx2/source/view/viewfrm.cxx:2964

Change-Id: I84a1ba817dc8449dc1942b6ebd443ec955e8c622
üst 6b873439
......@@ -39,6 +39,7 @@ private:
public:
SvxHlinkDlgWrapper( vcl::Window*pParent, sal_uInt16 nId,
SfxBindings* pBindings, SfxChildWinInfo* pInfo );
virtual ~SvxHlinkDlgWrapper() override;
SFX_DECL_CHILDWINDOW_WITHID(SvxHlinkDlgWrapper);
virtual bool QueryClose() override;
......
......@@ -77,4 +77,9 @@ bool SvxHlinkDlgWrapper::QueryClose()
return !mpDlg || mpDlg->QueryClose();
}
SvxHlinkDlgWrapper::~SvxHlinkDlgWrapper()
{
mpDlg.disposeAndClear();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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