stop leaking SkPDFDocument
bug: 28520971 Change-Id: I0fffde4bfa0aa8fe716e5ee2fc95a00b5c824e2f
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user