GrResourceAllocator: cleanup after failed instantiation

Failed instantiations are ultra-rare, so instead of trying to return
early in that case, go ahead and finish iterating through the list
so that it's cleared out and the cleanup-assertions in the
destructor pass.

Bug: skia:10877
Change-Id: I1452e4521fb35a374a046e15df1fe33630f72df9
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/381756
Auto-Submit: Adlai Holler <adlai@google.com>
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Commit-Queue: Adlai Holler <adlai@google.com>
diff --git a/src/gpu/GrResourceAllocator.cpp b/src/gpu/GrResourceAllocator.cpp
index fd5dc7f..2171c9e 100644
--- a/src/gpu/GrResourceAllocator.cpp
+++ b/src/gpu/GrResourceAllocator.cpp
@@ -311,7 +311,7 @@
     this->determineRecyclability();
 
     Interval* cur = nullptr;
-    while ((cur = fIntvlList.popHead()) && !fFailedInstantiation) {
+    while ((cur = fIntvlList.popHead())) {
         this->expire(cur->start());
 
         if (cur->proxy()->isInstantiated()) {