Don't leak QSetting in emoji model

This commit is contained in:
Carl Schwan
2020-11-22 11:56:19 +01:00
parent 816fc0aa25
commit 59ae9fa18d
2 changed files with 3 additions and 4 deletions

View File

@@ -63,7 +63,6 @@ class EmojiModel : public QObject
public:
explicit EmojiModel(QObject *parent = nullptr)
: QObject(parent)
, m_settings(new QSettings())
{
}
@@ -86,7 +85,7 @@ private:
static const QVariantList symbols;
static const QVariantList flags;
QSettings *m_settings;
QSettings m_settings;
};
#endif // EMOJIMODEL_H