From 8129b38ee426c897d0bb85309ee5be7f59e71142 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 27 Jun 2020 13:50:07 +0200 Subject: [PATCH] Remove unnecessary pointer check before deleting it No real changes. --- src/stc/PlatWX.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/stc/PlatWX.cpp b/src/stc/PlatWX.cpp index 1d06fd7b8f..e92fc22285 100644 --- a/src/stc/PlatWX.cpp +++ b/src/stc/PlatWX.cpp @@ -3142,10 +3142,7 @@ public: ~wxSTCListBoxD2D() { - if ( m_surfaceFontData ) - { - delete m_surfaceFontData; - } + delete m_surfaceFontData; } void SetListBoxFont(Font& font) wxOVERRIDE