diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-01-09 15:26:08 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-04-09 20:11:06 +0100 |
commit | 9a6bf4be437102004a01ee5818e943f0e095eefe (patch) | |
tree | b341a91c6983b9bb74052189bc06545549562e4f /vcl/source/window/openglwin.cxx | |
parent | 04acdd8db4236e5cd4a89c3ca3e9049ff731b717 (diff) |
vcl: dispose of more Window sub-classes, particularly top-level windows.
Change-Id: If8311e5cf3193fd1434c3af5225367ca8e91fc6d
Diffstat (limited to 'vcl/source/window/openglwin.cxx')
-rw-r--r-- | vcl/source/window/openglwin.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vcl/source/window/openglwin.cxx b/vcl/source/window/openglwin.cxx index 741940f45e2d..d026be2086f4 100644 --- a/vcl/source/window/openglwin.cxx +++ b/vcl/source/window/openglwin.cxx @@ -41,8 +41,16 @@ OpenGLWindow::OpenGLWindow(vcl::Window* pParent): OpenGLWindow::~OpenGLWindow() { + dispose(); +} + +void OpenGLWindow::dispose() +{ if(mpRenderer) mpRenderer->contextDestroyed(); + mpRenderer = NULL; + + Window::dispose(); } OpenGLContext& OpenGLWindow::getContext() |