need to initialize mnRefCnt

all sorts of things crash, e.g. format->properties

Change-Id: Ida4fb97dcdddd7adde4b98fa67b107a514eef615
This commit is contained in:
Caolán McNamara
2014-10-29 16:00:18 +00:00
parent f0ffe0c063
commit d8bc093dd0

View File

@@ -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;