diff options
Diffstat (limited to 'bench/GrMemoryPoolBench.cpp')
-rw-r--r-- | bench/GrMemoryPoolBench.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bench/GrMemoryPoolBench.cpp b/bench/GrMemoryPoolBench.cpp index 98fd6e5bde..861a43e4fb 100644 --- a/bench/GrMemoryPoolBench.cpp +++ b/bench/GrMemoryPoolBench.cpp @@ -67,7 +67,7 @@ protected: s = 0; } SkFixed del = r.nextSFixed1(); - if (count && + if (count && (kMaxObjects == count || del < delThresh)) { delete objects[count-1]; --count; |