From df8114d84616f8a85a5064f8deef2cca083193f8 Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Fri, 1 Mar 2013 18:10:41 +0000 Subject: Fix mesa issues. R=robertphillips@google.com Review URL: https://codereview.chromium.org/12389055 git-svn-id: http://skia.googlecode.com/svn/trunk@7928 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/gpu/gl/mesa/SkMesaGLContext.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gpu/gl/mesa/SkMesaGLContext.cpp') diff --git a/src/gpu/gl/mesa/SkMesaGLContext.cpp b/src/gpu/gl/mesa/SkMesaGLContext.cpp index 6c6e4228f3..2be0c13036 100644 --- a/src/gpu/gl/mesa/SkMesaGLContext.cpp +++ b/src/gpu/gl/mesa/SkMesaGLContext.cpp @@ -42,10 +42,12 @@ SkMesaGLContext::~SkMesaGLContext() { void SkMesaGLContext::destroyGLContext() { if (fImage) { sk_free(fImage); + fImage = NULL; } if (fContext) { OSMesaDestroyContext((OSMesaContext)fContext); + fContext = static_cast(NULL); } } -- cgit v1.2.3