diff options
author | Lei Zhang <thestig@chromium.org> | 2015-07-16 18:45:22 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-07-16 18:45:22 -0700 |
commit | 796c908e7b7bdde819a1e5a4bfd3576d8e8859d6 (patch) | |
tree | 8c0cd763dd9bf70bc14da8f8cb7893835a3572fe /core/src/fxge/apple | |
parent | ba026913c273a5c1c841bced288fdab03f10ad08 (diff) | |
download | pdfium-796c908e7b7bdde819a1e5a4bfd3576d8e8859d6.tar.xz |
Merge to XFA: Cleanup: Do not check pointers before deleting them, part 2.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1195363002 .
(cherry picked from commit 21bf242a31eff79f754c5e9c3b41c52e33483bb0)
Review URL: https://codereview.chromium.org/1235753006 .
Diffstat (limited to 'core/src/fxge/apple')
-rw-r--r-- | core/src/fxge/apple/fx_mac_imp.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/src/fxge/apple/fx_mac_imp.cpp b/core/src/fxge/apple/fx_mac_imp.cpp index 38ef02c90f..952af93b60 100644 --- a/core/src/fxge/apple/fx_mac_imp.cpp +++ b/core/src/fxge/apple/fx_mac_imp.cpp @@ -103,9 +103,7 @@ void CFX_GEModule::InitPlatform() } void CFX_GEModule::DestroyPlatform() { - if (m_pPlatformData) { - delete (CApplePlatform *) m_pPlatformData; - } + delete (CApplePlatform *)m_pPlatformData; m_pPlatformData = NULL; } #endif |