Index: src/effects/SkColorFilterImageFilter.cpp |
diff --git a/src/effects/SkColorFilterImageFilter.cpp b/src/effects/SkColorFilterImageFilter.cpp |
index 2a7cc3107a5fa2b6c9836b7cff56222aaced4b25..0087627ce9e232b576d12ad174228f73a3362acb 100755 |
--- a/src/effects/SkColorFilterImageFilter.cpp |
+++ b/src/effects/SkColorFilterImageFilter.cpp |
@@ -92,7 +92,8 @@ SkColorFilterImageFilter::SkColorFilterImageFilter(SkReadBuffer& buffer) |
SkFlattenable* SkColorFilterImageFilter::CreateProc(SkReadBuffer& buffer) { |
SK_IMAGEFILTER_UNFLATTEN_COMMON(common, 1); |
- return Create(buffer.readColorFilter(), common.getInput(0), &common.cropRect()); |
+ SkAutoTUnref<SkColorFilter> cf(buffer.readColorFilter()); |
+ return Create(cf, common.getInput(0), &common.cropRect()); |
} |
void SkColorFilterImageFilter::flatten(SkWriteBuffer& buffer) const { |