Index: src/gpu/GrResourceCache.cpp |
diff --git a/src/gpu/GrResourceCache.cpp b/src/gpu/GrResourceCache.cpp |
index 5e8c2c2bc6a47b23c2fef6a9ff56125d23b4b7b4..5cf3f82c7d780d1acc5ee53ca20d9f6140b1a7b4 100644 |
--- a/src/gpu/GrResourceCache.cpp |
+++ b/src/gpu/GrResourceCache.cpp |
@@ -312,8 +312,8 @@ |
// |
// This is complicated and confusing. May try this in the future. For |
// now, these resources are just LRU'd as if we never got the message. |
- GrResourceEntry* entry; |
- while ((entry= fCache.find(invalidated[i].key, GrTFindUnreffedFunctor()))) { |
+ GrResourceEntry* entry = fCache.find(invalidated[i].key, GrTFindUnreffedFunctor()); |
+ if (entry) { |
this->deleteResource(entry); |
} |
} |