Skip to content

Commit

Permalink
HouseKeeper: remove from the list of listeners in the destructor
Browse files Browse the repository at this point in the history
This fixes a segfault when exiting the FE caused by the HouseKeeper receiving
messages after it had been deleted.
  • Loading branch information
Paul Harrison committed Jun 10, 2013
1 parent 69d2f85 commit 0975569
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmythbase/housekeeper.cpp
Expand Up @@ -501,6 +501,8 @@ HouseKeeper::HouseKeeper(void) : m_timer(NULL)

HouseKeeper::~HouseKeeper(void)
{
gCoreContext->removeListener(this);

if (m_timer)
{
m_timer->stop();
Expand Down

0 comments on commit 0975569

Please sign in to comment.