From be6b14899381d31628887d3cf4af086a3acb7eef Mon Sep 17 00:00:00 2001 From: npm Date: Thu, 10 Nov 2016 10:12:30 -0800 Subject: Free the FPDF_SYSFONTINFO_DEFAULT instead of delete It was created with FX_Alloc instead of new. So use FX_Free instead of delete. BUG=664072 Review-Url: https://codereview.chromium.org/2485383005 --- fpdfsdk/fpdf_sysfontinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fpdfsdk') diff --git a/fpdfsdk/fpdf_sysfontinfo.cpp b/fpdfsdk/fpdf_sysfontinfo.cpp index ac6cf28e0b..6db768a8e2 100644 --- a/fpdfsdk/fpdf_sysfontinfo.cpp +++ b/fpdfsdk/fpdf_sysfontinfo.cpp @@ -197,5 +197,5 @@ DLLEXPORT FPDF_SYSFONTINFO* STDCALL FPDF_GetDefaultSystemFontInfo() { DLLEXPORT void FPDF_FreeDefaultSystemFontInfo( FPDF_SYSFONTINFO* pDefaultFontInfo) { - delete static_cast(pDefaultFontInfo); + FX_Free(static_cast(pDefaultFontInfo)); } -- cgit v1.2.3