summaryrefslogtreecommitdiff
path: root/pdf/SkPDFImage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pdf/SkPDFImage.cpp')
-rw-r--r--pdf/SkPDFImage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/SkPDFImage.cpp b/pdf/SkPDFImage.cpp
index 6c35f5a6..f3f75925 100644
--- a/pdf/SkPDFImage.cpp
+++ b/pdf/SkPDFImage.cpp
@@ -228,8 +228,8 @@ SkPDFArray* makeIndexedColorSpace(SkColorTable* table) {
rgbName->unref(); // SkRefPtr and new both took a reference.
result->append(rgbName.get());
- rgbName->unref(); // SkRefPtr and new both took a reference.
SkRefPtr<SkPDFInt> countValue = new SkPDFInt(table->count() - 1);
+ countValue->unref(); // SkRefPtr and new both took a reference.
result->append(countValue.get());
// Potentially, this could be represented in fewer bytes with a stream.