summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdf_sysfontinfo.cpp
diff options
context:
space:
mode:
authornpm <npm@chromium.org>2016-11-10 10:12:30 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-10 10:12:31 -0800
commitbe6b14899381d31628887d3cf4af086a3acb7eef (patch)
tree19ee58d145437bd7fbd7de3ba2caeb1e5e335e9d /fpdfsdk/fpdf_sysfontinfo.cpp
parent98329fe75b9c3e5422344a37d787fb22c89c2ca2 (diff)
downloadpdfium-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.cpp2
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));
}