[Libreoffice-commits] core.git: vcl/opengl

Chris Sherlock chris.sherlock79 at gmail.com
Tue Jan 20 02:50:58 PST 2015


 vcl/opengl/gdiimpl.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 3d580990643119cccb73f4f15d549863a6660aa6
Author: Chris Sherlock <chris.sherlock79 at gmail.com>
Date:   Tue Jan 20 21:49:30 2015 +1100

    vcl: increment ref in OpenGLSalGraphicsImpl::AcquireContext
    
    Change-Id: Id8167dfe55eb6f7a83454f5eb7a3b5a96e252980

diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx
index bae5302..51374b9 100644
--- a/vcl/opengl/gdiimpl.cxx
+++ b/vcl/opengl/gdiimpl.cxx
@@ -96,7 +96,11 @@ bool OpenGLSalGraphicsImpl::AcquireContext( )
     if( pContext )
         pContext->AddRef();
     else
+    {
         pContext = mbOffscreen ? GetDefaultContext() : CreateWinContext();
+        if (pContext)
+            pContext->AddRef();
+    }
 
     mpContext = pContext;
     return (mpContext != NULL);


More information about the Libreoffice-commits mailing list