Index: core/fpdfapi/page/cpdf_streamparser.cpp |
diff --git a/core/fpdfapi/page/cpdf_streamparser.cpp b/core/fpdfapi/page/cpdf_streamparser.cpp |
index 9d36d0a38b821320e30f1436d51c6f33ea887fda..b149f1fb9893ed0f98ad8061d7ca50912f630f8d 100644 |
--- a/core/fpdfapi/page/cpdf_streamparser.cpp |
+++ b/core/fpdfapi/page/cpdf_streamparser.cpp |
@@ -385,10 +385,9 @@ CPDF_Object* CPDF_StreamParser::ReadNextObject(bool bAllowNestedArray, |
while (1) { |
CPDF_Object* pObj = ReadNextObject(bAllowNestedArray, dwInArrayLevel + 1); |
if (pObj) { |
- pArray->Add(pObj); |
+ pArray->Add(pdfium::WrapUnique(pObj)); |
continue; |
} |
- |
if (!m_WordSize || m_WordBuffer[0] == ']') |
break; |
} |