From 2a0ce409e334028f82b92d4bfe393c1dc365b82b Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 12 Mar 2024 15:17:30 +0000 Subject: [PATCH] Attempt to fix non-MacOS build error. --- common/dialog_about/dialog_about.cpp | 4 ++++ common/dialog_about/dialog_about.h | 1 + 2 files changed, 5 insertions(+) diff --git a/common/dialog_about/dialog_about.cpp b/common/dialog_about/dialog_about.cpp index f74c479932..3df568b3f4 100644 --- a/common/dialog_about/dialog_about.cpp +++ b/common/dialog_about/dialog_about.cpp @@ -47,6 +47,7 @@ DIALOG_ABOUT::DIALOG_ABOUT( EDA_BASE_FRAME *aParent, ABOUT_APP_INFO& aAppInfo ) : DIALOG_ABOUT_BASE( aParent ), + m_images( nullptr ), m_info( aAppInfo ) { wxASSERT( aParent != nullptr ); @@ -122,6 +123,9 @@ DIALOG_ABOUT::DIALOG_ABOUT( EDA_BASE_FRAME *aParent, ABOUT_APP_INFO& aAppInfo ) DIALOG_ABOUT::~DIALOG_ABOUT() { +#ifndef __WXMAC__ + delete m_images; +#endif } diff --git a/common/dialog_about/dialog_about.h b/common/dialog_about/dialog_about.h index 86e4e50b8c..734969543f 100644 --- a/common/dialog_about/dialog_about.h +++ b/common/dialog_about/dialog_about.h @@ -80,6 +80,7 @@ private: wxStaticBitmap* createStaticBitmap( wxScrolledWindow* aParent, wxBitmap* icon ); private: + wxImageList* m_images; wxString m_titleName; wxString m_untranslatedTitleName;