diff options
author | Boris Barbulovski <bbarbulovski@gmail.com> | 2014-01-15 18:52:42 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-16 12:15:47 +0700 |
commit | 6cc65f5e1cf1eb0c870323d4c19e2d5c9cc9fd11 (patch) | |
tree | 424ad29366d0ac0a09be8540b365342aca7f27dd /qt-ui/models.h | |
parent | a27f67c02612791fad73b4e0550d942dc3a5a339 (diff) | |
download | subsurface-6cc65f5e1cf1eb0c870323d4c19e2d5c9cc9fd11.tar.gz |
Fix some memory leaks.
Memory leaks were caused by broken parent/child relations.
Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/models.h')
-rw-r--r-- | qt-ui/models.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/models.h b/qt-ui/models.h index 16818e407..2d7e5c34d 100644 --- a/qt-ui/models.h +++ b/qt-ui/models.h @@ -22,7 +22,7 @@ QFont defaultModelFont(); class CleanerTableModel : public QAbstractTableModel{ Q_OBJECT public: - CleanerTableModel(); + explicit CleanerTableModel(QObject *parent = 0); virtual int columnCount(const QModelIndex& parent = QModelIndex()) const; virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; protected: |