From 7e3d21cb6a9e8142b7132fe8fdae7a844b505006 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 1 Jun 2013 11:33:56 +0200 Subject: Don't clean up after ourselves Don't delete threads and stuff in destructors. It leads to SIGARBRT when debugging. Now we get a warning on close, but who cares? --- smdirwatcher.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'smdirwatcher.cpp') diff --git a/smdirwatcher.cpp b/smdirwatcher.cpp index 09aead4..9883a85 100644 --- a/smdirwatcher.cpp +++ b/smdirwatcher.cpp @@ -37,15 +37,6 @@ SmDirWatcher::SmDirWatcher(int numFields, QObject *parent) : QThread(parent), mF mCollector->start(); } -SmDirWatcher::~SmDirWatcher(){ - mCollector->terminate(); - mCollector->wait(); - if(mFd && mDescr){ - inotify_rm_watch(mFd, mDescr); - } - delete mINdata; -} - void SmDirWatcher::setDir(const QString &dir){ if(mDescr){ inotify_rm_watch(mFd, mDescr); //generates IN_IGNORE ??? -- cgit v1.2.3-70-g09d2