forked from qt-creator/qt-creator
autotools: Plug small memory leak
Change-Id: I04762208ad5cc96585a8ffdd48fe2c49670f00a0 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
122585dc5a
commit
29a2413d42
@@ -72,8 +72,11 @@ bool MakefileParser::parse()
|
|||||||
m_makefiles.clear();
|
m_makefiles.clear();
|
||||||
|
|
||||||
QFile *file = new QFile(m_makefile);
|
QFile *file = new QFile(m_makefile);
|
||||||
if (!file->open(QIODevice::ReadOnly | QIODevice::Text))
|
if (!file->open(QIODevice::ReadOnly | QIODevice::Text)) {
|
||||||
|
qWarning("%s: %s", qPrintable(m_makefile), qPrintable(file->errorString()));
|
||||||
|
delete file;
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
QFileInfo info(m_makefile);
|
QFileInfo info(m_makefile);
|
||||||
m_makefiles.append(info.fileName());
|
m_makefiles.append(info.fileName());
|
||||||
|
|||||||
Reference in New Issue
Block a user