Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(907)

Unified Diff: src/pdf/SkPDFStream.h

Issue 12387086: Unwind PDFObject destructor calls into heap instead of stack. Notice: the order of the destructors … (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/pdf/SkPDFStream.h
===================================================================
--- src/pdf/SkPDFStream.h (revision 7963)
+++ src/pdf/SkPDFStream.h (working copy)
@@ -51,6 +51,12 @@
void setData(SkStream* stream);
+ virtual void trasferPDFObjecsOwnership(SkTDArray<SkPDFObject*>* list) {
+ list->push(fSubstitute.detach());
+
+ INHERITED::trasferPDFObjecsOwnership(list);
+ }
+
private:
enum State {
kUnused_State, //!< The stream hasn't been requested yet.
« include/core/SkRefCnt.h ('K') | « src/pdf/SkPDFGraphicState.h ('k') | src/pdf/SkPDFTypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698