Skip to content

Commit

Permalink
Fix significant leak of File Transfer sockets/threads
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartm committed Jun 2, 2013
1 parent 0dcfe55 commit b8b3ad1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mythtv/programs/mythbackend/filetransfer.cpp
Expand Up @@ -41,6 +41,9 @@ FileTransfer::~FileTransfer()
{
Stop();

if (sock) // FileTransfer becomes responsible for deleting the socket
sock->DecrRef();

if (rbuffer)
{
delete rbuffer;
Expand Down

0 comments on commit b8b3ad1

Please sign in to comment.