Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix another leak
  • Loading branch information
nyalldawson committed Sep 12, 2017
1 parent 026309d commit 1124012
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/gui/geonode/qgsgeonodesourceselect.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 1124012

Please sign in to comment.