| Index: core/fpdfapi/fpdf_parser/cpdf_parser.cpp
|
| diff --git a/core/fpdfapi/fpdf_parser/cpdf_parser.cpp b/core/fpdfapi/fpdf_parser/cpdf_parser.cpp
|
| index 26adf7bb137eaf350de286d832569f856bd56235..ffd3f79a621955629271fa7935d667a109021d72 100644
|
| --- a/core/fpdfapi/fpdf_parser/cpdf_parser.cpp
|
| +++ b/core/fpdfapi/fpdf_parser/cpdf_parser.cpp
|
| @@ -982,6 +982,8 @@ FX_BOOL CPDF_Parser::LoadCrossRefV5(FX_FILESIZE* pos, FX_BOOL bMainXRef) {
|
| if (m_pDocument) {
|
| CPDF_Dictionary* pRootDict = m_pDocument->GetRoot();
|
| if (pRootDict && pRootDict->GetObjNum() == pObject->m_ObjNum) {
|
| + // If |pObject| has an objnum assigned then this will leak as Release()
|
| + // will early exit.
|
| if (pObject->IsStream())
|
| pObject->Release();
|
| return FALSE;
|
|
|