Thread has virtual member functions, so it should have a virtual destructor.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 12 Apr 2013 23:15:24 +0000 (01:15 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 12 Apr 2013 23:15:24 +0000 (01:15 +0200)
thread.cpp
thread.h

index 03bfd9d..7aded3b 100644 (file)
@@ -3,6 +3,8 @@
 #include <signal.h>
 
 #include "thread.h"
+       
+Thread::~Thread() {}
 
 void Thread::run()
 {
index d9b9535..9c9bdc6 100644 (file)
--- a/thread.h
+++ b/thread.h
@@ -10,6 +10,7 @@
 
 class Thread {
 public:
+       virtual ~Thread();
        void run();
        void stop();