This plugs a memory leak found with valgrind.
Signed-off-by: Anton Lundin <[email protected]>
---
qt-ui/modeldelegates.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/qt-ui/modeldelegates.cpp b/qt-ui/modeldelegates.cpp
index 6eac66f..d2bdadc 100644
--- a/qt-ui/modeldelegates.cpp
+++ b/qt-ui/modeldelegates.cpp
@@ -289,9 +289,8 @@ QWidget *TankInfoDelegate::createEditor(QWidget *parent,
const QStyleOptionViewI
return delegate;
}
-TankUseDelegate::TankUseDelegate(QObject *parent)
+TankUseDelegate::TankUseDelegate(QObject *parent) : QStyledItemDelegate(parent)
{
-
}
QWidget *TankUseDelegate::createEditor(QWidget * parent, const
QStyleOptionViewItem & option, const QModelIndex & index) const
--
2.1.0
_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface