1
0
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:
Martin Tůma 2024-06-20 05:31:21 +02:00
parent cc8704ff20
commit 1034c52b39

View File

@ -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;
} }