From 5d9577f8069c5a2dfdc8aab65901d4f0c2b922a5 Mon Sep 17 00:00:00 2001
From: curt <curt>
Date: Fri, 1 Oct 1999 20:36:16 +0000
Subject: [PATCH] Remove ssg kids in a an attepmpt to fix one memory leak.   We
 think the remaining leak is ssg's fault.

---
 src/Scenery/tileentry.cxx | 1 +
 1 file changed, 1 insertion(+)

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 ) {