Permalink
Browse files

Fix segfault in LoggerThread::initialTimeout()

  • Loading branch information...
daniel-kristjansson committed Jun 22, 2012
1 parent bbe7b2a commit 7db675a9dfa85837d8171b1a4f1cfe1c1490391b
Showing with 6 additions and 3 deletions.
  1. +6 −3 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)
{

0 comments on commit 7db675a

Please sign in to comment.