| Index: src/pdf/SkPDFGraphicState.cpp
|
| diff --git a/src/pdf/SkPDFGraphicState.cpp b/src/pdf/SkPDFGraphicState.cpp
|
| index 4ec0821974aabc9ba3cf988eecc733e944e0dab3..5732ef84bb6b72f26656860a798cb7da55763a6a 100644
|
| --- a/src/pdf/SkPDFGraphicState.cpp
|
| +++ b/src/pdf/SkPDFGraphicState.cpp
|
| @@ -112,11 +112,7 @@ bool SkPDFGraphicState::equals(const SkPaint& paint) const {
|
| return equivalent(paint, fPaint);
|
| }
|
|
|
| -SkPDFGraphicState::~SkPDFGraphicState() {
|
| - if (fCanon) {
|
| - fCanon->removeGraphicState(this);
|
| - }
|
| -}
|
| +SkPDFGraphicState::~SkPDFGraphicState() {}
|
|
|
| void SkPDFGraphicState::emitObject(SkWStream* stream, SkPDFCatalog* catalog) {
|
| populateDict();
|
| @@ -132,7 +128,7 @@ SkPDFGraphicState* SkPDFGraphicState::GetGraphicStateForPaint(
|
| return SkRef(pdfGraphicState);
|
| }
|
| pdfGraphicState = new SkPDFGraphicState(canon, paint);
|
| - canon->addGraphicState(pdfGraphicState);
|
| + canon->addGraphicState(SkRef(pdfGraphicState));
|
| return pdfGraphicState;
|
| }
|
|
|
|
|