Kaydet (Commit) 1a15c1cd authored tarafından Michael Meeks's avatar Michael Meeks Kaydeden (comit) Andras Timar

tdf#94006 - need an explicit dispose for slideshow's GLContext.

Fixes crasher exiting slideshow.

Change-Id: I14b6a2c1abc946f590bf91cab19099753172fd95
Reviewed-on: https://gerrit.libreoffice.org/18609Reviewed-by: 's avatarTor Lillqvist <tml@collabora.com>
Tested-by: 's avatarTor Lillqvist <tml@collabora.com>
üst 0a916dac
...@@ -1325,6 +1325,8 @@ void OGLTransitionerImpl::impl_dispose() ...@@ -1325,6 +1325,8 @@ void OGLTransitionerImpl::impl_dispose()
{ {
impl_finishTransition(); impl_finishTransition();
disposeTextures(); disposeTextures();
if( mpContext.is() )
mpContext->dispose();
mpContext.clear(); mpContext.clear();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment