From 0a379865511e4128c12e45179b38b48bb51cbf8b Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Sat, 21 Nov 2020 21:45:09 +0000 Subject: [PATCH] Use ref_ptr for ReaderWriterSPT --- simgear/scene/tgdb/ReaderWriterSPT.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/scene/tgdb/ReaderWriterSPT.cxx b/simgear/scene/tgdb/ReaderWriterSPT.cxx index 38a24f62..25a28f20 100644 --- a/simgear/scene/tgdb/ReaderWriterSPT.cxx +++ b/simgear/scene/tgdb/ReaderWriterSPT.cxx @@ -286,7 +286,7 @@ ReaderWriterSPT::createTree(const BucketBox& bucketBox, const LocalOptions& opti osg::ref_ptr ReaderWriterSPT::createPagedLOD(const BucketBox& bucketBox, const LocalOptions& options) const { - osg::PagedLOD* pagedLOD = new osg::PagedLOD; + osg::ref_ptr pagedLOD = new osg::PagedLOD; pagedLOD->setCenterMode(osg::PagedLOD::USER_DEFINED_CENTER); SGSpheref sphere = bucketBox.getBoundingSphere();