From 788217d77c9933614efbd778b6f6ee0008f4f9d9 Mon Sep 17 00:00:00 2001 From: npm Date: Tue, 8 Nov 2016 16:48:36 -0800 Subject: Add FPDF_FreeDefaultSystemFontInfo API Added method that will cast into FPDF_SYSFONTINFO_DEFAULT and delete. This will allow using FPDF_GetDefaultSystemFontInfo() without memory management problems. Review-Url: https://codereview.chromium.org/2485283002 --- fpdfsdk/fpdfview_c_api_test.c | 1 + 1 file changed, 1 insertion(+) (limited to 'fpdfsdk/fpdfview_c_api_test.c') diff --git a/fpdfsdk/fpdfview_c_api_test.c b/fpdfsdk/fpdfview_c_api_test.c index a48ddb981c..afc357f1e3 100644 --- a/fpdfsdk/fpdfview_c_api_test.c +++ b/fpdfsdk/fpdfview_c_api_test.c @@ -158,6 +158,7 @@ int CheckPDFiumCApi() { CHK(FPDF_AddInstalledFont); CHK(FPDF_SetSystemFontInfo); CHK(FPDF_GetDefaultSystemFontInfo); + CHK(FPDF_FreeDefaultSystemFontInfo); // fpdf_text.h CHK(FPDFText_LoadPage); -- cgit v1.2.3