Skip to content

Commit

Permalink
Disconnect the NetStream::slotRequestStarted() slot before destroying
Browse files Browse the repository at this point in the history
the object.

Per Daniel - 'That connection should be disconnected and then the mutex should be locked and released to make sure we're not processing a slotRequestStarted() as and after we delete the class'
  • Loading branch information
stuartm committed Dec 15, 2012
1 parent 7dfc8a2 commit c07a94c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/libs/libmythtv/netstream.cpp
Expand Up @@ -119,6 +119,8 @@ NetStream::~NetStream()
{
Abort();

(NAMThread::manager()).disconnect(this);

QMutexLocker locker(&m_mutex);

if (m_reply)
Expand Down

0 comments on commit c07a94c

Please sign in to comment.