From 2e1a724c2029783e84d7c508c6010afac0d6d10f Mon Sep 17 00:00:00 2001 From: Arnaud Versini Date: Thu, 21 Apr 2016 20:50:16 +0200 Subject: [PATCH] Try to fix tdf#93967 by using VclPtr to keep the window alive Change-Id: Ibc03ae15b22eba672475ace602858ad60e95418d Reviewed-on: https://gerrit.libreoffice.org/24283 Tested-by: Jenkins Reviewed-by: Michael Meeks Tested-by: Michael Meeks --- vcl/source/window/floatwin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx index a1d0a9b5a0af..f3b8e2b1cc97 100644 --- a/vcl/source/window/floatwin.cxx +++ b/vcl/source/window/floatwin.cxx @@ -96,7 +96,7 @@ void FloatingWindow::ImplInit( vcl::Window* pParent, WinBits nStyle ) } else { - ImplBorderWindow* pBorderWin; + VclPtr pBorderWin; sal_uInt16 nBorderStyle = BORDERWINDOW_STYLE_BORDER | BORDERWINDOW_STYLE_FLOAT; if (nStyle & WB_OWNERDRAWDECORATION)