[QGIS Commit] r13092 - trunk/qgis/src/app/gps
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Sat Mar 20 04:49:00 EDT 2010
Author: mhugent
Date: 2010-03-20 04:48:59 -0400 (Sat, 20 Mar 2010)
New Revision: 13092
Modified:
trunk/qgis/src/app/gps/qgsgpsinformationwidget.cpp
Log:
Delete on a 0 pointer is save
Modified: trunk/qgis/src/app/gps/qgsgpsinformationwidget.cpp
===================================================================
--- trunk/qgis/src/app/gps/qgsgpsinformationwidget.cpp 2010-03-20 08:40:26 UTC (rev 13091)
+++ trunk/qgis/src/app/gps/qgsgpsinformationwidget.cpp 2010-03-20 08:48:59 UTC (rev 13092)
@@ -346,10 +346,7 @@
void QgsGPSInformationWidget::disconnectGps()
{
QgsGPSConnectionRegistry::instance()->unregisterConnection( mNmea );
- if ( mNmea )
- {
- delete mNmea;
- }
+ delete mNmea;
mGPSTextEdit->append( tr( "Disconnected..." ) );
mConnectButton->setChecked( false );
mConnectButton->setText( tr( "Connect" ) );
More information about the QGIS-commit
mailing list