Commit 9fc18b35 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix resource leak

CID:34707
parent 9ca2ade0
......@@ -48,6 +48,11 @@ TableOfContentsStyleModel::TableOfContentsStyleModel(const KoStyleManager *manag
}
TableOfContentsStyleModel::~TableOfContentsStyleModel()
{
delete m_styleThumbnailer;
}
QModelIndex TableOfContentsStyleModel::index(int row, int column, const QModelIndex &parent) const
{
if (row < 0 || column < 0 || column > 1) {
......
......@@ -30,7 +30,7 @@ class TableOfContentsStyleModel : public QAbstractTableModel
{
public:
TableOfContentsStyleModel(const KoStyleManager *manager, KoTableOfContentsGeneratorInfo *info);
~TableOfContentsStyleModel() override;
int rowCount(const QModelIndex &parent) const override;
int columnCount(const QModelIndex &parent) const override;
QVariant data(const QModelIndex &index, int role) const override;
......
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