Index: xfa/fxfa/app/xfa_ffdoc.cpp |
diff --git a/xfa/fxfa/app/xfa_ffdoc.cpp b/xfa/fxfa/app/xfa_ffdoc.cpp |
index cf5b28961360ed388fa337131bb77588ae05049f..e719a41c63c6853243b22dffd7ad1d2e8cfccf03 100644 |
--- a/xfa/fxfa/app/xfa_ffdoc.cpp |
+++ b/xfa/fxfa/app/xfa_ffdoc.cpp |
@@ -326,7 +326,7 @@ bool CXFA_FFDoc::OpenDoc(CPDF_Document* pPDFDoc) { |
if (xfaStreams.empty()) |
return false; |
- IFX_SeekableReadStream* pFileRead = new CXFA_FileRead(xfaStreams); |
+ IFX_SeekableReadStream* pFileRead = MakeSeekableReadStream(xfaStreams); |
m_pPDFDoc = pPDFDoc; |
if (m_pStream) { |
m_pStream->Release(); |