From: curt Date: Fri, 1 Oct 1999 20:36:16 +0000 (+0000) Subject: Remove ssg kids in a an attepmpt to fix one memory leak. We think the X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5d9577f8069c5a2dfdc8aab65901d4f0c2b922a5;p=flightgear.git Remove ssg kids in a an attepmpt to fix one memory leak. We think the remaining leak is ssg's fault. --- diff --git a/src/Scenery/tileentry.cxx b/src/Scenery/tileentry.cxx index c4af8ca54..7df08fa74 100644 --- a/src/Scenery/tileentry.cxx +++ b/src/Scenery/tileentry.cxx @@ -114,6 +114,7 @@ FGTileEntry::free_tile() FG_LOG( FG_TERRAIN, FG_DEBUG, "Found a kid to delete " << kid); found_kid = true; + parent->removeKid( i ); } } if ( ! found_kid ) {