Skip to content

Commit

Permalink
UPNPScanner: Don't leak network replies on exit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Kendall committed Dec 1, 2011
1 parent 6027231 commit 33266b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mythtv/programs/mythfrontend/upnpscanner.cpp
Expand Up @@ -483,10 +483,16 @@ void UPNPScanner::Stop(void)

// cleanup the network
foreach (QNetworkReply *reply, m_descriptionRequests)
{
reply->abort();
delete reply;
}
m_descriptionRequests.clear();
foreach (QNetworkReply *reply, m_browseRequests)
{
reply->abort();
delete reply;
}
m_browseRequests.clear();
delete m_network;
m_network = NULL;
Expand Down

0 comments on commit 33266b8

Please sign in to comment.