diff options
Diffstat (limited to 'src/gpu/gl/mesa/SkMesaGLContext.cpp')
-rw-r--r-- | src/gpu/gl/mesa/SkMesaGLContext.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<Context>(NULL); } } |