Index: tests/PDFPrimitivesTest.cpp |
=================================================================== |
--- tests/PDFPrimitivesTest.cpp (revision 8291) |
+++ tests/PDFPrimitivesTest.cpp (working copy) |
@@ -225,7 +225,7 @@ |
// and there is no assert on input data in Debug mode. |
static void test_issue1083() { |
SkISize pageSize = SkISize::Make(100, 100); |
- SkPDFDevice* dev = new SkPDFDevice(pageSize, pageSize, SkMatrix::I()); |
+ SkAutoTUnref<SkPDFDevice> dev(new SkPDFDevice(pageSize, pageSize, SkMatrix::I())); |
SkCanvas c(dev); |
SkPaint paint; |