Fix a memory leak in CmaRootObject.

Assign a thread name for easy debugging.
This commit is contained in:
codestation
2013-08-20 00:41:18 -04:30
parent 0704cfa80a
commit d4dcb42a8e
7 changed files with 12 additions and 6 deletions

View File

@@ -29,10 +29,14 @@ void BaseWorker::onFinished()
{
}
void BaseWorker::start()
void BaseWorker::start(const char *thread_name)
{
thread = new QThread();
if(thread_name) {
thread->setObjectName(thread_name);
}
// Move this service to a new thread
this->moveToThread(thread);