diff options
Diffstat (limited to 'src/signalController.cpp')
-rw-r--r-- | src/signalController.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/signalController.cpp b/src/signalController.cpp index b3029c3..75ba32c 100644 --- a/src/signalController.cpp +++ b/src/signalController.cpp @@ -149,10 +149,6 @@ SignalController::~SignalController() { for(HandlerMap::iterator it = handler.begin(); it != handler.end(); ++it) delete it->second; - -#ifndef _MSC_VER - if(thread) delete thread; -#endif } #ifndef _MSC_VER @@ -193,7 +189,7 @@ void SignalController::init() #error The signalhandler works only with pthreads #endif - thread = new boost::thread(boost::bind(&SignalController::handle, this)); + boost::thread(boost::bind(&SignalController::handle, this)); handler[SIGINT] = new SigIntHandler; handler[SIGQUIT] = new SigQuitHandler; |