summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-09-16 02:58:16 +0100
committerAndras Timar <andras.timar@collabora.com>2015-09-18 10:10:52 +0200
commit1a15c1cd69f646d32c901a42a33d6bf27a711a8a (patch)
treea5363263b88cd550dd805e7db0531f7c4a60408d /slideshow
parent0a916dac2c735740ea2183bf9cf22e3fe363c3fe (diff)
tdf#94006 - need an explicit dispose for slideshow's GLContext.
Fixes crasher exiting slideshow. Change-Id: I14b6a2c1abc946f590bf91cab19099753172fd95 Reviewed-on: https://gerrit.libreoffice.org/18609 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionerImpl.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionerImpl.cxx b/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionerImpl.cxx
index db5097083cc6..f29686696237 100644
--- a/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionerImpl.cxx
+++ b/slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionerImpl.cxx
@@ -1325,6 +1325,8 @@ void OGLTransitionerImpl::impl_dispose()
{
impl_finishTransition();
disposeTextures();
+ if( mpContext.is() )
+ mpContext->dispose();
mpContext.clear();
}