aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2015-10-27 09:03:19 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2015-10-27 09:03:19 +0000
commit7dd66f1ceacf99a38b9774fe98e852e9afe73cd6 (patch)
tree9dd007b22d8398152f3e73eb9a3ce0e8f67cd6f6 /src/plugins/General
parentca4ab68d9686934e46437ff4f2b4bba2e8486758 (diff)
downloadqmmp-7dd66f1ceacf99a38b9774fe98e852e9afe73cd6.tar.gz
qmmp-7dd66f1ceacf99a38b9774fe98e852e9afe73cd6.tar.bz2
qmmp-7dd66f1ceacf99a38b9774fe98e852e9afe73cd6.zip
rgscan: fixed segmentation fault
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5729 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General')
-rw-r--r--src/plugins/General/rgscan/rgscanner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/General/rgscan/rgscanner.cpp b/src/plugins/General/rgscan/rgscanner.cpp
index 4a65e78e8..44d05c9c5 100644
--- a/src/plugins/General/rgscan/rgscanner.cpp
+++ b/src/plugins/General/rgscan/rgscanner.cpp
@@ -64,10 +64,10 @@ bool RGScanner::prepare(const QString &url)
if(source->ioDevice() && !source->ioDevice()->open(QIODevice::ReadOnly))
{
- delete source;
qWarning("RGScanner: [%s] unable to open input stream, error: %s",
qPrintable(name),
qPrintable(source->ioDevice()->errorString()));
+ delete source;
return false;
}