Web UI code optimization

This commit is contained in:
Christophe Dumez
2011-09-30 20:51:29 +03:00
parent dad1568657
commit f98d4e9149
3 changed files with 3 additions and 3 deletions

View File

@@ -403,7 +403,7 @@ void HttpConnection::respondCommand(const QString& command) {
tmpfile->write(m_parser.torrent());
tmpfile->close();
emit torrentReadyToBeDownloaded(tmpfile->fileName(), false, QString(), false);
delete tmpfile;
tmpfile->deleteLater();
} else {
std::cerr << "I/O Error: Could not create temporary file" << std::endl;
delete tmpfile;