mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-19 23:39:42 +01:00
Avoid possible null pointer access
This commit is contained in:
parent
ed58392e04
commit
9ad3e053e7
@ -95,7 +95,8 @@ StreamConnection::~StreamConnection()
|
||||
// protected, we could expose it:
|
||||
//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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user