From: curt Date: Tue, 6 Aug 2002 18:52:45 +0000 (+0000) Subject: Temporarily fix a crash and correctly free memory until I can sort out a X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=29d20b17031289b586fbe85e97a86b2f40c8908a;p=flightgear.git Temporarily fix a crash and correctly free memory until I can sort out a problem with the partial ssg tree freeing code. --- diff --git a/src/Scenery/tileentry.cxx b/src/Scenery/tileentry.cxx index 428facd19..9f10886ed 100644 --- a/src/Scenery/tileentry.cxx +++ b/src/Scenery/tileentry.cxx @@ -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 ) {