Chromium Code Reviews| Index: core/src/fxcrt/fx_basic_plex.cpp |
| diff --git a/core/src/fxcrt/fx_basic_plex.cpp b/core/src/fxcrt/fx_basic_plex.cpp |
| index b6383ecf20ca705840a8ea5e224595f3e79c3c53..f4805d4cbb18a85bb07cbc27842971e22cb811e1 100644 |
| --- a/core/src/fxcrt/fx_basic_plex.cpp |
| +++ b/core/src/fxcrt/fx_basic_plex.cpp |
| @@ -18,7 +18,7 @@ CFX_Plex* CFX_Plex::Create(CFX_Plex*& pHead, |
| } |
| void CFX_Plex::FreeDataChain() { |
| CFX_Plex* p = this; |
| - while (p != NULL) { |
| + while (p) { |
| uint8_t* bytes = (uint8_t*)p; |
| CFX_Plex* pNext = p->pNext; |
|
Tom Sepez
2015/12/14 19:14:11
nit: no need for pNext, just re-assign p here?, al
Lei Zhang
2015/12/15 01:38:33
Done.
|
| FX_Free(bytes); |