Skip to content
Permalink
Browse files

Dont delete layer after it is removed from registry

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10207 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux
timlinux committed Feb 20, 2009
1 parent 8c1a699 commit 9ba3f29f4121e3b54d772844db228bd631a1681b
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 9ba3f29

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