Index: src/pdf/SkPDFTypes.h |
diff --git a/src/pdf/SkPDFTypes.h b/src/pdf/SkPDFTypes.h |
index 99320b1efc77708347d3f71e96a314a466872813..97c4fa1dbf5e890cffc5e197a2fc8a84851e6eb8 100644 |
--- a/src/pdf/SkPDFTypes.h |
+++ b/src/pdf/SkPDFTypes.h |
@@ -318,7 +318,7 @@ class SkPDFSharedStream final : public SkPDFObject { |
public: |
// Takes ownership of asset. |
SkPDFSharedStream(SkStreamAsset* data) : fAsset(data), fDict(new SkPDFDict) { SkASSERT(data); } |
- SkPDFDict* dict() { return fDict; } |
+ SkPDFDict* dict() { return fDict.get(); } |
void emitObject(SkWStream*, |
const SkPDFObjNumMap&, |
const SkPDFSubstituteMap&) const override; |