]> git.sesse.net Git - cubemap/commitdiff
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 03bfd9d8931bf9e0970ecc0878bc079b3921173d..7aded3bb8cda25790550a3818a4b3a40ff205496 100644 (file)
@@ -3,6 +3,8 @@
 #include <signal.h>
 
 #include "thread.h"
+       
+Thread::~Thread() {}
 
 void Thread::run()
 {
index d9b95359aa54828410fa62bd828d59a1f395fd30..9c9bdc6d3ba79b49728c0398521382d6d33bb9f0 100644 (file)
--- a/thread.h
+++ b/thread.h
@@ -10,6 +10,7 @@
 
 class Thread {
 public:
+       virtual ~Thread();
        void run();
        void stop();