From: Steinar H. Gunderson Date: Fri, 12 Apr 2013 23:15:24 +0000 (+0200) Subject: Thread has virtual member functions, so it should have a virtual destructor. X-Git-Tag: 1.0.0~133 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=94561762b1294b76508eb5554aedbb56fcaececc Thread has virtual member functions, so it should have a virtual destructor. --- diff --git a/thread.cpp b/thread.cpp index 03bfd9d..7aded3b 100644 --- a/thread.cpp +++ b/thread.cpp @@ -3,6 +3,8 @@ #include #include "thread.h" + +Thread::~Thread() {} void Thread::run() { diff --git a/thread.h b/thread.h index d9b9535..9c9bdc6 100644 --- a/thread.h +++ b/thread.h @@ -10,6 +10,7 @@ class Thread { public: + virtual ~Thread(); void run(); void stop();