From 21bf242a31eff79f754c5e9c3b41c52e33483bb0 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 16 Jul 2015 18:28:49 -0700 Subject: Cleanup: Do not check pointers before deleting them, part 2. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1195363002 . --- core/src/fxge/apple/fx_mac_imp.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'core/src/fxge/apple') diff --git a/core/src/fxge/apple/fx_mac_imp.cpp b/core/src/fxge/apple/fx_mac_imp.cpp index 3a9b9f9ec3..04b04b8ba8 100644 --- a/core/src/fxge/apple/fx_mac_imp.cpp +++ b/core/src/fxge/apple/fx_mac_imp.cpp @@ -100,9 +100,7 @@ void CFX_GEModule::InitPlatform() } void CFX_GEModule::DestroyPlatform() { - if (m_pPlatformData) { - delete (CApplePlatform *) m_pPlatformData; - } + delete (CApplePlatform *)m_pPlatformData; m_pPlatformData = NULL; } #endif -- cgit v1.2.3