summaryrefslogtreecommitdiff
path: root/vcl/source/window/openglwin.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-05-23 01:19:19 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-05-23 02:50:41 +0200
commit2b2fc70d2626a978b9593a04a234565c9abb26e7 (patch)
tree254aa4ceac2c2e96aa43e4fdd1331875bcac7096 /vcl/source/window/openglwin.cxx
parent8778b5b37e919384f3dbcf51e0dde0d26fe5fc39 (diff)
Lsan: fix invalid memory access
The chart object can be destroyed after the context. Change-Id: I5ae370638f296ea314ee11680e0a8d81a8fdbe69
Diffstat (limited to 'vcl/source/window/openglwin.cxx')
-rw-r--r--vcl/source/window/openglwin.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/window/openglwin.cxx b/vcl/source/window/openglwin.cxx
index d6fb9c46df9d..d6e5357236e7 100644
--- a/vcl/source/window/openglwin.cxx
+++ b/vcl/source/window/openglwin.cxx
@@ -40,6 +40,8 @@ OpenGLWindow::OpenGLWindow(Window* pParent):
OpenGLWindow::~OpenGLWindow()
{
+ if(mpRenderer)
+ mpRenderer->contextDestroyed();
}
OpenGLContext* OpenGLWindow::getContext()