X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=DEM%2Fdem.cxx;h=21e8ebc1d68949b3a91a071e13dd9a517b6269f8;hb=757ecbfcfd6deea9c9be0b1d9953b385cab04459;hp=13bd4ea0bed1d78672ba0dea3402e11dcc29fc3d;hpb=99df9c1ee000eef8f9ef7532550cfb57b23cdeee;p=flightgear.git diff --git a/DEM/dem.cxx b/DEM/dem.cxx index 13bd4ea0b..21e8ebc1d 100644 --- a/DEM/dem.cxx +++ b/DEM/dem.cxx @@ -774,8 +774,8 @@ void fgDEM::outputmesh_output_nodes( char *fg_root, fgBUCKET *p ) { printf("(extra) %d %.2f %.2f %.2f\n", i, exnodes[i][0], exnodes[i][1], exnodes[i][2]); } + fclose(fd); } - fclose(fd); printf("Creating node file: %s\n", file); fd = fopen(file, "w"); @@ -825,6 +825,10 @@ fgDEM::~fgDEM( void ) { // $Log$ +// Revision 1.13 1998/09/09 16:24:04 curt +// Fixed a bug in the handling of exclude files which was causing +// a crash by calling fclose() on an invalid file handle. +// // Revision 1.12 1998/08/24 20:03:31 curt // Eliminated a possible memory overrun error. // Use the proper free() rather than the incorrect delete().