diff options
Diffstat (limited to 'src/gpu/GrLayerCache.cpp')
-rw-r--r-- | src/gpu/GrLayerCache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrLayerCache.cpp b/src/gpu/GrLayerCache.cpp index f33384c3e9..27cb55b9ee 100644 --- a/src/gpu/GrLayerCache.cpp +++ b/src/gpu/GrLayerCache.cpp @@ -467,7 +467,7 @@ void GrLayerCache::purgeAll() { SkASSERT(0 == fPictureHash.count()); - GrDrawContext* drawContext = fContext->drawContext(); + SkAutoTUnref<GrDrawContext> drawContext(fContext->drawContext()); if (drawContext) { drawContext->discard(fAtlas->getTexture()->asRenderTarget()); |