diff options
-rw-r--r-- | core/fpdfapi/page/cpdf_textobject.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/fpdfapi/page/cpdf_textobject.cpp b/core/fpdfapi/page/cpdf_textobject.cpp index ac90eb1e50..0d60d50e2c 100644 --- a/core/fpdfapi/page/cpdf_textobject.cpp +++ b/core/fpdfapi/page/cpdf_textobject.cpp @@ -7,6 +7,7 @@ #include "core/fpdfapi/page/cpdf_textobject.h" #include <algorithm> +#include <utility> #include "core/fpdfapi/font/cpdf_cidfont.h" #include "core/fpdfapi/font/cpdf_font.h" @@ -19,7 +20,11 @@ CPDF_TextObjectItem::~CPDF_TextObjectItem() = default; CPDF_TextObject::CPDF_TextObject() {} -CPDF_TextObject::~CPDF_TextObject() {} +CPDF_TextObject::~CPDF_TextObject() { + // Move m_CharCodes to a local variable so it will be captured in crash dumps, + // to help with investigating crbug.com/782215. + auto char_codes_copy = std::move(m_CharCodes); +} size_t CPDF_TextObject::CountItems() const { return m_CharCodes.size(); |