]> git.mxchange.org Git - flightgear.git/commitdiff
Remove ssg kids in a an attepmpt to fix one memory leak. We think the
authorcurt <curt>
Fri, 1 Oct 1999 20:36:16 +0000 (20:36 +0000)
committercurt <curt>
Fri, 1 Oct 1999 20:36:16 +0000 (20:36 +0000)
remaining leak is ssg's fault.

src/Scenery/tileentry.cxx

index c4af8ca54456e8c44d452267f0bacaaf626db672..7df08fa7419ac65823f980a1567b3f314edd9214 100644 (file)
@@ -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 ) {