Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix segfault in LoggerThread::initialTimeout()

  • Loading branch information...
commit 7db675a9dfa85837d8171b1a4f1cfe1c1490391b 1 parent bbe7b2a
@daniel-kristjansson daniel-kristjansson authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 mythtv/libs/libmythbase/logging.cpp
View
9 mythtv/libs/libmythbase/logging.cpp
@@ -402,9 +402,12 @@ void LoggerThread::run(void)
/// to show signs of life
void LoggerThread::initialTimeout(void)
{
- m_initialTimer->stop();
- delete m_initialTimer;
- m_initialTimer = NULL;
+ if (m_initialTimer)
+ {
+ m_initialTimer->stop();
+ delete m_initialTimer;
+ m_initialTimer = NULL;
+ }
if (m_initialWaiting)
{
Please sign in to comment.
Something went wrong with that request. Please try again.