From 82ed51d167e2a97d748f246811be44fa402b9868 Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Sat, 23 Apr 2016 20:24:49 +0200 Subject: [PATCH] Add virtual dtor to wxMSW CustomDraw class This class is used polymorphically and needs a virtual dtor. See https://github.com/wxWidgets/wxWidgets/pull/276 --- include/wx/msw/private/customdraw.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/wx/msw/private/customdraw.h b/include/wx/msw/private/customdraw.h index 36bd009659..3d2a10f19e 100644 --- a/include/wx/msw/private/customdraw.h +++ b/include/wx/msw/private/customdraw.h @@ -29,6 +29,11 @@ public: { } + // Virtual dtor for the base class. + virtual ~CustomDraw() + { + } + // Implementation of NM_CUSTOMDRAW handler, returns one of CDRF_XXX // constants, possibly CDRF_DODEFAULT if custom drawing is not necessary. LPARAM HandleCustomDraw(LPARAM lParam);