From 1fccbdbd53bb1bbc121a92745a4617322d8d8666 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Fri, 31 Dec 2021 00:05:02 +0000 Subject: [PATCH] Give EDA_SHAPE a virtual destructor EDA_SHAPE can be inherited from, so a virtual destructor is needed to ensure the destructors are called in order. --- include/eda_shape.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/eda_shape.h b/include/eda_shape.h index bbd498022b..5b94203a2c 100644 --- a/include/eda_shape.h +++ b/include/eda_shape.h @@ -69,7 +69,7 @@ public: // Do not create a copy constructor & operator=. // The ones generated by the compiler are adequate. - ~EDA_SHAPE(); + virtual ~EDA_SHAPE(); void SwapShape( EDA_SHAPE* aImage );