From d8bc093dd07ceba42c9d722e7ccca4caedbd91e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Wed, 29 Oct 2014 16:00:18 +0000 Subject: [PATCH] need to initialize mnRefCnt all sorts of things crash, e.g. format->properties Change-Id: Ida4fb97dcdddd7adde4b98fa67b107a514eef615 --- vcl/source/window/window.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index a8617ae7a4a6..606a4f551ead 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -1187,6 +1187,8 @@ void Window::ImplInitWindowData( WindowType nType ) // it will not *be* an OutputDevice mpOutputDevice = (OutputDevice*)this; + mnRefCnt = 0; + mpWindowImpl = new WindowImpl( nType ); meOutDevType = OUTDEV_WINDOW;