summaryrefslogtreecommitdiff
path: root/public/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'public/cpp')
-rw-r--r--public/cpp/fpdf_deleters.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/public/cpp/fpdf_deleters.h b/public/cpp/fpdf_deleters.h
index d56daf5c55..238ef30e62 100644
--- a/public/cpp/fpdf_deleters.h
+++ b/public/cpp/fpdf_deleters.h
@@ -6,6 +6,7 @@
#define PUBLIC_CPP_FPDF_DELETERS_H_
#include "public/fpdf_dataavail.h"
+#include "public/fpdf_edit.h"
#include "public/fpdf_formfill.h"
#include "public/fpdf_structtree.h"
#include "public/fpdf_text.h"
@@ -43,4 +44,8 @@ struct FPDFStructTreeDeleter {
inline void operator()(FPDF_STRUCTTREE tree) { FPDF_StructTree_Close(tree); }
};
+struct FPDFFontDeleter {
+ inline void operator()(FPDF_FONT font) { FPDFFont_Close(font); }
+};
+
#endif // PUBLIC_CPP_FPDF_DELETERS_H_