Index: src/core/SkPixelRef.cpp |
diff --git a/src/core/SkPixelRef.cpp b/src/core/SkPixelRef.cpp |
index 47f958dc38bffc62ebbcda36356a6c52ab79972d..7490029b3d08c609a00030633d72d1fa343ba81c 100644 |
--- a/src/core/SkPixelRef.cpp |
+++ b/src/core/SkPixelRef.cpp |
@@ -157,6 +157,8 @@ bool SkPixelRef::lockPixels() { |
validate_pixels_ctable(fInfo, fRec.fColorTable); |
return true; |
} |
+ // no pixels, so we failed (somehow) |
+ --fLockCount; |
return false; |
} |