diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-04-22 17:19:42 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-04-22 17:19:42 +0100 |
commit | 8387e5bd93d1181d1da39b3075ab09b421e26ab4 (patch) | |
tree | 4688c1f5097909aced5e2e6ae47ad1e999a2d883 /vcl/source/window/openglwin.cxx | |
parent | 9f81582c7e998f26a0f499ba2ef9c845b9df2358 (diff) |
Fix lifecycle issues.
Change-Id: I7524ca3da7d134d94553be0e7a6db7e879984ae8
Diffstat (limited to 'vcl/source/window/openglwin.cxx')
-rw-r--r-- | vcl/source/window/openglwin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/openglwin.cxx b/vcl/source/window/openglwin.cxx index 1ef46dabc828..21af6cc53598 100644 --- a/vcl/source/window/openglwin.cxx +++ b/vcl/source/window/openglwin.cxx @@ -16,6 +16,7 @@ class OpenGLWindowImpl { public: OpenGLWindowImpl(vcl::Window* pWindow); + ~OpenGLWindowImpl() { mxChildWindow.disposeAndClear(); } OpenGLContext& getContext() { return maContext;} private: OpenGLContext maContext; @@ -31,7 +32,6 @@ OpenGLWindowImpl::OpenGLWindowImpl(vcl::Window* pWindow) pWindow->SetMouseTransparent(false); } - OpenGLWindow::OpenGLWindow(vcl::Window* pParent): Window(pParent, 0), mxImpl(new OpenGLWindowImpl(this)), @@ -49,7 +49,7 @@ void OpenGLWindow::dispose() if(mpRenderer) mpRenderer->contextDestroyed(); mpRenderer = NULL; - + mxImpl.reset(); Window::dispose(); } |