From baf0b4cdbc927a651f68c539f7340766c160fb2c Mon Sep 17 00:00:00 2001 From: David Boman Date: Thu, 6 Jul 2017 16:47:03 +0200 Subject: [PATCH] Add virtual destructor, see: https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#discussion-make-base-class-destructors-public-and-virtual-or-protected-and-nonvirtual --- Thread.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Thread.h b/Thread.h index 0e580a9..cf0be31 100644 --- a/Thread.h +++ b/Thread.h @@ -69,6 +69,7 @@ class Thread{ #endif Thread(void (*callback)(void) = NULL, unsigned long _interval = 0); + virtual ~Thread() {}; // Set the desired interval for calls, and update _cached_next_run virtual void setInterval(unsigned long _interval);