Permalink
Browse files

Properly delete thread names on deregistration

Thanks to stuartm for noticing this wee leak :)
  • Loading branch information...
Beirdo committed Jun 25, 2012
1 parent f0b1a28 commit 3c575875776a79bfca7f2f611c25e0a21fd238aa
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythtv/libs/libmythbase/logging.cpp
@@ -533,8 +533,8 @@ void LoggerThread::handleItem(LoggingItem *item)
(long long int)tid,
logThreadHash[item->m_threadId]);
}
- item->m_threadName = logThreadHash[item->m_threadId];
- logThreadHash.remove(item->m_threadId);
+ char *threadName = logThreadHash.take(item->m_threadId);
+ free(threadName);
}
}

0 comments on commit 3c57587

Please sign in to comment.