mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 06:36:55 +02:00
Avoid possible null pointer access
This commit is contained in:
@@ -95,7 +95,8 @@ StreamConnection::~StreamConnection()
|
|||||||
// protected, we could expose it:
|
// protected, we could expose it:
|
||||||
//m_iodev->setErrorString("FTConnection providing data went away mid-transfer");
|
//m_iodev->setErrorString("FTConnection providing data went away mid-transfer");
|
||||||
|
|
||||||
((BufferIODevice*)m_iodev.data())->inputComplete();
|
if ( !m_iodev.isNull() )
|
||||||
|
((BufferIODevice*)m_iodev.data())->inputComplete();
|
||||||
}
|
}
|
||||||
|
|
||||||
Servent::instance()->onStreamFinished( this );
|
Servent::instance()->onStreamFinished( this );
|
||||||
|
Reference in New Issue
Block a user