summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/cpdf_object.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/parser/cpdf_object.cpp')
-rw-r--r--core/fpdfapi/parser/cpdf_object.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/fpdfapi/parser/cpdf_object.cpp b/core/fpdfapi/parser/cpdf_object.cpp
index e9c215ce19..cc410d10c8 100644
--- a/core/fpdfapi/parser/cpdf_object.cpp
+++ b/core/fpdfapi/parser/cpdf_object.cpp
@@ -37,6 +37,11 @@ CPDF_Object* CPDF_Object::CloneNonCyclic(
return Clone();
}
+void CPDF_Object::Release() {
+ CHECK(!m_ObjNum);
+ delete this;
+}
+
CFX_ByteString CPDF_Object::GetString() const {
return CFX_ByteString();
}