forked from qt-creator/qt-creator
Fix some memory leaks
Task-number: QTCREATORBUG-7645 Change-Id: I34253d063a20ebf927bf651cf68af4fe1b71bc89 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -54,6 +54,7 @@ public:
|
||||
CodeStylePoolPrivate()
|
||||
: m_factory(0)
|
||||
{}
|
||||
~CodeStylePoolPrivate();
|
||||
|
||||
QString generateUniqueId(const QString &id) const;
|
||||
|
||||
@@ -65,6 +66,11 @@ public:
|
||||
QString m_settingsPath;
|
||||
};
|
||||
|
||||
CodeStylePoolPrivate::~CodeStylePoolPrivate()
|
||||
{
|
||||
delete m_factory;
|
||||
}
|
||||
|
||||
QString CodeStylePoolPrivate::generateUniqueId(const QString &id) const
|
||||
{
|
||||
if (!id.isEmpty() && !m_idToCodeStyle.contains(id))
|
||||
|
||||
Reference in New Issue
Block a user