Skip to content
Permalink
Browse files

Fix memory leak

  • Loading branch information
nyalldawson committed Sep 5, 2017
1 parent 239e353 commit 026309d99b07e1de5245bdf293a9f9e23b18868e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/geonode/qgsgeonodesourceselect.cpp
@@ -60,7 +60,7 @@ QgsGeoNodeSourceSelect::QgsGeoNodeSourceSelect( QWidget *parent, Qt::WindowFlags
mItemDelegate = new QgsGeonodeItemDelegate( treeView );
treeView->setItemDelegate( mItemDelegate );

mModel = new QStandardItemModel();
mModel = new QStandardItemModel( this );
mModel->setHorizontalHeaderItem( MODEL_IDX_TITLE, new QStandardItem( tr( "Title" ) ) );
mModel->setHorizontalHeaderItem( MODEL_IDX_NAME, new QStandardItem( tr( "Name" ) ) );
mModel->setHorizontalHeaderItem( MODEL_IDX_TYPE, new QStandardItem( tr( "Type" ) ) );

0 comments on commit 026309d

Please sign in to comment.
You can’t perform that action at this time.