Chromium Code Reviews| Index: include/core/SkTemplates.h |
| =================================================================== |
| --- include/core/SkTemplates.h (revision 10047) |
| +++ include/core/SkTemplates.h (working copy) |
| @@ -257,7 +257,8 @@ |
| } |
| if (fCount != count) { |
| - if (count > N) { |
| + if (fCount > N) { |
| + // 'fArray' was allocated last time so free it now |
|
reed1
2013/07/12 18:23:35
possibly also
SkASSERT(fStorage != fArray);
robertphillips
2013/07/12 18:44:43
Done.
|
| sk_free(fArray); |
| } |
| @@ -267,7 +268,6 @@ |
| fArray = (T*) fStorage; |
| } else { |
| fArray = NULL; |
| - return; |
| } |
| fCount = count; |