Skip to content
Permalink
Browse files

Dont delete layer after it is removed from registry

git-svn-id: http://svn.osgeo.org/qgis/trunk@10207 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux
timlinux committed Feb 20, 2009
1 parent e8fcdfd commit 9c05e7d9ed8dd1e0b13171171e403247260a588e
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/src/core/testqgsrasterlayer.cpp
@@ -220,7 +220,7 @@ void TestQgsRasterLayer::registry()
QgsMapLayerRegistry::instance()->addMapLayer(mypLayer,false);
QgsMapLayerRegistry::instance()->removeMapLayer(mypLayer->getLayerID());
//cleanup
delete mypLayer;
//delete mypLayer;
}

//

0 comments on commit 9c05e7d

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