Commit 028532ac authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Fix memory leak in UMLAppPrivate::readWelcomeFile()

CCBUG:301932
parent a332a818
...@@ -90,6 +90,7 @@ QString UMLAppPrivate::readWelcomeFile(const QString &file) ...@@ -90,6 +90,7 @@ QString UMLAppPrivate::readWelcomeFile(const QString &file)
QByteArray data = d->readAll(); QByteArray data = d->readAll();
html = QString::fromUtf8(data); html = QString::fromUtf8(data);
d->close(); d->close();
delete d;
} else { } else {
QFile f(file); QFile f(file);
if (!f.open(QIODevice::ReadOnly)) if (!f.open(QIODevice::ReadOnly))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment