Skip to content
Permalink
Browse files

Delete on a 0 pointer is save

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13092 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Mar 20, 2010
1 parent 9ec81a6 commit f1ed843ae4ae5ef82331ed858aa0970b47f08acb
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 f1ed843

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