Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes segfault on mythfrontend exit & related problems.

NetworkControl wasn't removing itself from the listener list when the object was
deleted causing a segfault when an event was received during shutdown.

Reviewed other instances of gCoreContext->addListener() and fixed one other
instances of this error.
(cherry picked from commit c7a1e81)

Refs #10359
  • Loading branch information...
commit 08dffd40a052cb65fa8e5a7f46232ec96ea998aa 1 parent 91a06b9
@daniel-kristjansson daniel-kristjansson authored stuartm committed
View
2  mythtv/libs/libmythui/mythmainwindow.cpp
@@ -476,6 +476,8 @@ MythMainWindow::MythMainWindow(const bool useDB)
MythMainWindow::~MythMainWindow()
{
+ gCoreContext->removeListener(this);
+
d->drawTimer->stop();
while (!d->stackList.isEmpty())
View
2  mythtv/programs/mythfrontend/networkcontrol.cpp
@@ -225,6 +225,8 @@ NetworkControl::NetworkControl() :
NetworkControl::~NetworkControl(void)
{
+ gCoreContext->removeListener(this);
+
clientLock.lock();
while (!clients.isEmpty())
{
Please sign in to comment.
Something went wrong with that request. Please try again.