diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-09-16 02:58:16 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-09-19 21:32:19 +0200 |
commit | 68b477e0ed2e2c5b59751b0b936c2b663be3c5b5 (patch) | |
tree | 9f96bb92b4a60c2cbcd1723004b3161193916e32 | |
parent | d239161067492cc286dec439dc08f5904a4cc84b (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>
-rw-r--r-- | slideshow/source/engine/OGLTrans/generic/OGLTrans_TransitionerImpl.cxx | 2 |
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(); } |