| Index: core/fpdfapi/parser/cpdf_string.cpp
|
| diff --git a/core/fpdfapi/parser/cpdf_string.cpp b/core/fpdfapi/parser/cpdf_string.cpp
|
| index fd4ff04ff747eec3e2de322db174de3cc9b09c2b..ffdda0457252d5215d92f42d9e7ec872e6e1d3c8 100644
|
| --- a/core/fpdfapi/parser/cpdf_string.cpp
|
| +++ b/core/fpdfapi/parser/cpdf_string.cpp
|
| @@ -19,8 +19,11 @@ CPDF_String::CPDF_String(CFX_WeakPtr<CFX_ByteStringPool> pPool,
|
| m_String = pPool->Intern(m_String);
|
| }
|
|
|
| -CPDF_String::CPDF_String(const CFX_WideString& str) : m_bHex(false) {
|
| - m_String = PDF_EncodeText(str);
|
| +CPDF_String::CPDF_String(CFX_WeakPtr<CFX_ByteStringPool> pPool,
|
| + const CFX_WideString& str)
|
| + : m_String(PDF_EncodeText(str)), m_bHex(false) {
|
| + if (pPool)
|
| + m_String = pPool->Intern(m_String);
|
| }
|
|
|
| CPDF_String::~CPDF_String() {}
|
|
|