Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4cb7bb53 authored by Hal Canary's avatar Hal Canary Committed by Derek Sollenberger
Browse files

skia SkDocument - new MakePDF API, fix leak

bug: 28520971

(cherry picked from commit 801ab86e9e4cde646a22da2bd224ae5cce7ad631)

Change-Id: I86549284c417640629b7ce3b79b01de69a7a23a5
parent b4c51cf0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -88,7 +88,7 @@ public:
    }

    void write(SkWStream* stream) {
        SkAutoTUnref<SkDocument> document(SkDocument::CreatePDF(stream));
        sk_sp<SkDocument> document = SkDocument::MakePDF(stream);
        for (unsigned i = 0; i < mPages.size(); i++) {
            PageRecord* page =  mPages[i];