Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Clean up some small memory leaks in logging

  • Loading branch information...
commit 0e4437ceb4dabdaa26a409a992a4d574e6b976fc 1 parent 5b3afdb
@Beirdo Beirdo authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 mythtv/libs/libmythbase/logging.cpp
View
5 mythtv/libs/libmythbase/logging.cpp
@@ -198,9 +198,7 @@ char *LoggingItem::getThreadName(void)
return m_threadName;
QMutexLocker locker(&logThreadMutex);
- char *name = logThreadHash.value(m_threadId, (char *)unknown);
- m_threadName = strdup(name);
- return m_threadName;
+ return logThreadHash.value(m_threadId, (char *)unknown);
}
/// \brief Get the thread ID of the thread that produced the LoggingItem
@@ -359,6 +357,7 @@ void LoggerThread::run(void)
{
qLock.unlock();
qApp->processEvents(QEventLoop::AllEvents, 10);
+ qApp->sendPostedEvents(NULL, QEvent::DeferredDelete);
qLock.relock();
if (logQueue.isEmpty())
Please sign in to comment.
Something went wrong with that request. Please try again.