Merge "stop leaking SkPDFDocument" into nyc-dev

This commit is contained in:
Hal Canary
2016-05-03 19:27:56 +00:00
committed by Android (Google) Code Review

View File

@@ -88,7 +88,7 @@ public:
}
void write(SkWStream* stream) {
SkDocument* document = SkDocument::CreatePDF(stream);
SkAutoTUnref<SkDocument> document(SkDocument::CreatePDF(stream));
for (unsigned i = 0; i < mPages.size(); i++) {
PageRecord* page = mPages[i];