Index: bench/PDFBench.cpp |
diff --git a/bench/PDFBench.cpp b/bench/PDFBench.cpp |
index 920a02da4ac14017a98cc692dadc4596fcd9e15b..75b05de29d89c6fb77037188db84779e75d8ed82 100644 |
--- a/bench/PDFBench.cpp |
+++ b/bench/PDFBench.cpp |
@@ -30,7 +30,7 @@ static void test_pdf_object_serialization(SkPDFObject* object) { |
SkPDFObjNumMap objNumMap; |
objNumMap.addObjectRecursively(object, substitutes); |
for (int i = 0; i < objNumMap.objects().count(); ++i) { |
- SkPDFObject* object = objNumMap.objects()[i]; |
+ SkPDFObject* object = objNumMap.objects()[i].get(); |
wStream.writeDecAsText(i + 1); |
wStream.writeText(" 0 obj\n"); |
object->emitObject(&wStream, objNumMap, substitutes); |