Skip to content
Permalink
Browse files

Delete on a 0 pointer is save

git-svn-id: http://svn.osgeo.org/qgis/trunk@13092 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Mar 20, 2010
1 parent 527cdd7 commit 2394e50122cd6caf3d720068ae35e78c0323fd6f
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/app/gps/qgsgpsinformationwidget.cpp
@@ -346,10 +346,7 @@ void QgsGPSInformationWidget::connected( QgsGPSConnection *conn )
void QgsGPSInformationWidget::disconnectGps()
{
QgsGPSConnectionRegistry::instance()->unregisterConnection( mNmea );
if ( mNmea )
{
delete mNmea;
}
delete mNmea;
mGPSTextEdit->append( tr( "Disconnected..." ) );
mConnectButton->setChecked( false );
mConnectButton->setText( tr( "Connect" ) );

0 comments on commit 2394e50

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