From 94561762b1294b76508eb5554aedbb56fcaececc Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 13 Apr 2013 01:15:24 +0200 Subject: [PATCH] Thread has virtual member functions, so it should have a virtual destructor. --- thread.cpp | 2 ++ thread.h | 1 + 2 files changed, 3 insertions(+) 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(); -- 2.39.2