diff options
Diffstat (limited to 'src/views/win/SkOSWindow_win.cpp')
-rw-r--r-- | src/views/win/SkOSWindow_win.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/views/win/SkOSWindow_win.cpp b/src/views/win/SkOSWindow_win.cpp index 9267a9583e..f2d63117d4 100644 --- a/src/views/win/SkOSWindow_win.cpp +++ b/src/views/win/SkOSWindow_win.cpp @@ -538,7 +538,7 @@ bool SkOSWindow::attachANGLE(int msaaSampleCount) { if (false == bResult) { return false; } - const GrGLInterface* intf = GrGLCreateANGLEInterface(); + SkAutoTUnref<const GrGLInterface> intf(GrGLCreateANGLEInterface()); if (intf) { ANGLE_GL_CALL(intf, ClearStencil(0)); @@ -548,7 +548,7 @@ bool SkOSWindow::attachANGLE(int msaaSampleCount) { } } if (eglMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { - const GrGLInterface* intf = GrGLCreateANGLEInterface(); + SkAutoTUnref<const GrGLInterface> intf(GrGLCreateANGLEInterface()); if (intf ) { ANGLE_GL_CALL(intf, Viewport(0, 0, SkScalarRound(this->width()), @@ -573,7 +573,7 @@ void SkOSWindow::detachANGLE() { } void SkOSWindow::presentANGLE() { - const GrGLInterface* intf = GrGLCreateANGLEInterface(); + SkAutoTUnref<const GrGLInterface> intf(GrGLCreateANGLEInterface()); if (intf) { ANGLE_GL_CALL(intf, Flush()); |