From: David Kilzer Date: Fri, 6 Mar 2015 07:33:11 +0000 (+0000) Subject: Protect Document in ProcessingInstruction::setXSLStyleSheet() X-Git-Tag: archive/raspbian/2.14.3-1+rpi1~1^2^2^2~17 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=af2107689297b3970b2492202ebd7b99dd147766;p=webkit2gtk.git Protect Document in ProcessingInstruction::setXSLStyleSheet() =================================================================== Gbp-Pq: Name protect-document.patch --- diff --git a/Source/WebCore/dom/ProcessingInstruction.cpp b/Source/WebCore/dom/ProcessingInstruction.cpp index b37ae84435..2e729e6a76 100644 --- a/Source/WebCore/dom/ProcessingInstruction.cpp +++ b/Source/WebCore/dom/ProcessingInstruction.cpp @@ -215,6 +215,7 @@ void ProcessingInstruction::setXSLStyleSheet(const String& href, const URL& base { ASSERT(m_isXSL); m_sheet = XSLStyleSheet::create(this, href, baseURL); + Ref protect(document()); parseStyleSheet(sheet); } #endif