| Index: src/core/SkValidatingReadBuffer.cpp
|
| diff --git a/src/core/SkValidatingReadBuffer.cpp b/src/core/SkValidatingReadBuffer.cpp
|
| index 037a99465b2853f34627b379ba32323277a3f3ea..96b08639361de35e29c1691308ef7af3bc733390 100644
|
| --- a/src/core/SkValidatingReadBuffer.cpp
|
| +++ b/src/core/SkValidatingReadBuffer.cpp
|
| @@ -250,7 +250,7 @@ SkFlattenable* SkValidatingReadBuffer::readFlattenable(SkFlattenable::Type type)
|
| this->validate(sizeRecorded == sizeRead);
|
| if (fError) {
|
| // we could try to fix up the offset...
|
| - delete obj;
|
| + SkSafeUnref(obj);
|
| obj = NULL;
|
| }
|
| } else {
|
|
|