| OLD | NEW |
| 1 | |
| 2 /* | 1 /* |
| 3 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
| 4 * | 3 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 7 */ | 6 */ |
| 8 | 7 |
| 9 | 8 |
| 10 #include "SkRefDict.h" | 9 #include "SkRefDict.h" |
| 11 #include "SkString.h" | 10 #include "SkString.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 void SkRefDict::removeAll() { | 79 void SkRefDict::removeAll() { |
| 81 Impl* rec = fImpl; | 80 Impl* rec = fImpl; |
| 82 while (rec) { | 81 while (rec) { |
| 83 Impl* next = rec->fNext; | 82 Impl* next = rec->fNext; |
| 84 rec->fData->unref(); | 83 rec->fData->unref(); |
| 85 delete rec; | 84 delete rec; |
| 86 rec = next; | 85 rec = next; |
| 87 } | 86 } |
| 88 fImpl = nullptr; | 87 fImpl = nullptr; |
| 89 } | 88 } |
| OLD | NEW |