aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/rgscan
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/General/rgscan')
-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;
}