Skip to content

Commit 98516fd

Browse files
author
jef
committed
fix crash on invalid raster layers
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8455 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 80cacae commit 98516fd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/app/qgisapp.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5123,7 +5123,6 @@ QgsRasterLayer* QgisApp::addRasterLayer(QString const & rasterFile, QString cons
51235123
+ tr(" is not a valid or recognized raster data source"));
51245124
QMessageBox::critical(this, tr("Invalid Data Source"), msg);
51255125
}
5126-
delete layer;
51275126
return NULL;
51285127
}
51295128
else

0 commit comments

Comments
 (0)