diff options
author | Lei Zhang <thestig@chromium.org> | 2015-07-16 18:28:49 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-07-16 18:28:49 -0700 |
commit | 21bf242a31eff79f754c5e9c3b41c52e33483bb0 (patch) | |
tree | 0eff85fa75ab9091254f7560b37b95408ba8975e /fpdfsdk/src/fpdf_transformpage.cpp | |
parent | 6915e7bd9e0892f143936697c6ba233510fb13dc (diff) | |
download | pdfium-21bf242a31eff79f754c5e9c3b41c52e33483bb0.tar.xz |
Cleanup: Do not check pointers before deleting them, part 2.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1195363002 .
Diffstat (limited to 'fpdfsdk/src/fpdf_transformpage.cpp')
-rw-r--r-- | fpdfsdk/src/fpdf_transformpage.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fpdfsdk/src/fpdf_transformpage.cpp b/fpdfsdk/src/fpdf_transformpage.cpp index dca0c23a56..5ede62692b 100644 --- a/fpdfsdk/src/fpdf_transformpage.cpp +++ b/fpdfsdk/src/fpdf_transformpage.cpp @@ -211,8 +211,7 @@ DLLEXPORT FPDF_CLIPPATH STDCALL FPDF_CreateClipPath(float left, float bottom, fl DLLEXPORT void STDCALL FPDF_DestroyClipPath(FPDF_CLIPPATH clipPath) { - if(clipPath) - delete (CPDF_ClipPath*)clipPath; + delete (CPDF_ClipPath*)clipPath; } void OutputPath(CFX_ByteTextBuf& buf, CPDF_Path path) |