From 7cdfa8a3f463fb959264df75781f94e3a332b45b Mon Sep 17 00:00:00 2001 From: reed Date: Tue, 11 Aug 2015 12:23:45 -0700 Subject: [PATCH] decrement lockcount if we failed to get pixels BUG=519581 Review URL: https://codereview.chromium.org/1284953002 --- src/core/SkPixelRef.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/SkPixelRef.cpp b/src/core/SkPixelRef.cpp index 2a46385c24..bb21372f15 100644 --- a/src/core/SkPixelRef.cpp +++ b/src/core/SkPixelRef.cpp @@ -200,6 +200,8 @@ bool SkPixelRef::lockPixelsInsideMutex() { validate_pixels_ctable(fInfo, fRec.fColorTable); return true; } + // no pixels, so we failed (somehow) + --fLockCount; return false; } -- 2.34.1