mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-27 21:24:47 +01:00
Fixed memory leak
This commit is contained in:
parent
cc8704ff20
commit
1034c52b39
@ -197,6 +197,7 @@ bool Downloader::doDownload(const Download &dl, const QList<HTTPHeader> &headers
|
|||||||
if (!file->open(QIODevice::WriteOnly)) {
|
if (!file->open(QIODevice::WriteOnly)) {
|
||||||
qWarning("%s: %s", qPrintable(file->fileName()),
|
qWarning("%s: %s", qPrintable(file->fileName()),
|
||||||
qPrintable(file->errorString()));
|
qPrintable(file->errorString()));
|
||||||
|
delete file;
|
||||||
_errorDownloads.insert(url, RETRIES);
|
_errorDownloads.insert(url, RETRIES);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user