aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Transports/http/httpstreamreader.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2012-10-21 08:09:36 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2012-10-21 08:09:36 +0000
commit4fbe9116ecc9defaad3551e8c19c622a49fc9925 (patch)
treee76c78ca7471d2371fb71c4b9be7bcba308cb6c0 /src/plugins/Transports/http/httpstreamreader.h
parent5cb61b21b26e8a9a93915fa60c4064d39e3ccb08 (diff)
downloadqmmp-4fbe9116ecc9defaad3551e8c19c622a49fc9925.tar.gz
qmmp-4fbe9116ecc9defaad3551e8c19c622a49fc9925.tar.bz2
qmmp-4fbe9116ecc9defaad3551e8c19c622a49fc9925.zip
fixed possible null-pointer dereference in transport plugins
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2958 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Transports/http/httpstreamreader.h')
-rw-r--r--src/plugins/Transports/http/httpstreamreader.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/Transports/http/httpstreamreader.h b/src/plugins/Transports/http/httpstreamreader.h
index 7bf05f926..1159dfe1f 100644
--- a/src/plugins/Transports/http/httpstreamreader.h
+++ b/src/plugins/Transports/http/httpstreamreader.h
@@ -35,6 +35,7 @@
class QTextCodec;
class QFileInfo;
class DownloadThread;
+class HTTPInputSource;
/*! @internal
* @author Ilya Kotov <forkotov02@hotmail.ru>
@@ -57,7 +58,7 @@ class HttpStreamReader : public QIODevice
{
Q_OBJECT
public:
- HttpStreamReader(const QString &url, QObject *parent = 0);
+ HttpStreamReader(const QString &url, HTTPInputSource *parent);
virtual ~HttpStreamReader();
@@ -105,6 +106,7 @@ private:
long m_buffer_size;
QTextCodec *m_codec;
DownloadThread *m_thread;
+ HTTPInputSource *m_parent;
#ifdef WITH_ENCA
EncaAnalyser m_analyser;
#endif