diff options
author | npm <npm@chromium.org> | 2016-11-10 10:12:30 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-10 10:12:31 -0800 |
commit | be6b14899381d31628887d3cf4af086a3acb7eef (patch) | |
tree | 19ee58d145437bd7fbd7de3ba2caeb1e5e335e9d /fpdfsdk/fpdf_sysfontinfo.cpp | |
parent | 98329fe75b9c3e5422344a37d787fb22c89c2ca2 (diff) | |
download | pdfium-be6b14899381d31628887d3cf4af086a3acb7eef.tar.xz |
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
Diffstat (limited to 'fpdfsdk/fpdf_sysfontinfo.cpp')
-rw-r--r-- | fpdfsdk/fpdf_sysfontinfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<FPDF_SYSFONTINFO_DEFAULT*>(pDefaultFontInfo); + FX_Free(static_cast<FPDF_SYSFONTINFO_DEFAULT*>(pDefaultFontInfo)); } |