Fix mismatched free() new.
This commit is contained in:
parent
c10c3b1d1d
commit
1ce327140e
|
@ -105,6 +105,6 @@ void Controller::postFile(QMatrixClient::Room* room, const QUrl& localFile,
|
||||||
QString Controller::getMIME(const QUrl& fileUrl) const {
|
QString Controller::getMIME(const QUrl& fileUrl) const {
|
||||||
QMimeDatabase* db = new QMimeDatabase();
|
QMimeDatabase* db = new QMimeDatabase();
|
||||||
const QString mime = db->mimeTypeForFile(fileUrl.toLocalFile()).name();
|
const QString mime = db->mimeTypeForFile(fileUrl.toLocalFile()).name();
|
||||||
free(db);
|
delete db;
|
||||||
return mime;
|
return mime;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue