Skip to content
Permalink
Browse files

Fix another leak

  • Loading branch information
nyalldawson committed Sep 5, 2017
1 parent 026309d commit 11240121c1bb4f809979d814324450caff2f2599
Showing with 5 additions and 7 deletions.
  1. +5 −7 src/gui/geonode/qgsgeonodesourceselect.cpp
@@ -74,23 +74,21 @@ QgsGeoNodeSourceSelect::QgsGeoNodeSourceSelect( QWidget *parent, Qt::WindowFlags

void QgsGeoNodeSourceSelect::addConnectionsEntryList()
{
QgsGeoNodeNewConnection *nc = new QgsGeoNodeNewConnection( this );
QgsGeoNodeNewConnection nc( this );

if ( nc->exec() )
if ( nc.exec() )
{
populateConnectionList();
emit connectionsChanged();
}

delete nc;
}

void QgsGeoNodeSourceSelect::modifyConnectionsEntryList()
{
QgsGeoNodeNewConnection *nc = new QgsGeoNodeNewConnection( this, cmbConnections->currentText() );
nc->setWindowTitle( tr( "Modify GeoNode connection" ) );
QgsGeoNodeNewConnection nc( this, cmbConnections->currentText() );
nc.setWindowTitle( tr( "Modify GeoNode connection" ) );

if ( nc->exec() )
if ( nc.exec() )
{
populateConnectionList();
emit connectionsChanged();

0 comments on commit 1124012

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