]> git.mxchange.org Git - flightgear.git/commitdiff
Temporarily fix a crash and correctly free memory until I can sort out a
authorcurt <curt>
Tue, 6 Aug 2002 18:52:45 +0000 (18:52 +0000)
committercurt <curt>
Tue, 6 Aug 2002 18:52:45 +0000 (18:52 +0000)
problem with the partial ssg tree freeing code.

src/Scenery/tileentry.cxx

index 428facd1981ed1867f92cdc9cfca05affa6aa7a1..9f10886edc72278583b5ee4952dd74e8b7ec6f79 100644 (file)
@@ -688,6 +688,9 @@ ssgBranch* FGTileEntry::gen_runway_lights( ssgVertexArray *points,ssgVertexArray
 // is intended to spread the load of freeing a complex tile out over
 // several frames.
 static int fgPartialFreeSSGtree( ssgBranch *b, int n ) {
+    ssgDeRefDelete( b );
+    return 0;
+
     int num_deletes = 0;
 
     if ( n > 0 ) {