trivial fix for TextBlobCache
BUG=skia:
Review URL: https://codereview.chromium.org/1076193003
diff --git a/src/gpu/GrTextBlobCache.h b/src/gpu/GrTextBlobCache.h
index 9ce4ec7..1b5e5b8 100644
--- a/src/gpu/GrTextBlobCache.h
+++ b/src/gpu/GrTextBlobCache.h
@@ -65,8 +65,10 @@
SkASSERT(lruBlob);
while (fPool.size() > kBudget && (lruBlob = iter.get()) && lruBlob != blob) {
fCache.remove(lruBlob->fUniqueID);
- fBlobList.remove(lruBlob);
+
+ // Backup the iterator before removing and unrefing the blob
iter.prev();
+ fBlobList.remove(lruBlob);
lruBlob->unref();
}