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.
This commit is contained in:
Ian McInerney 2021-12-31 00:05:02 +00:00
parent f744ddd11d
commit 1fccbdbd53
1 changed files with 1 additions and 1 deletions

View File

@ -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 );