Fix what looks like it could potentially cause a problem with accessing
previously free'd memory.
This commit is contained in:
parent
3d4581dd81
commit
9fc9c8d55a
2 changed files with 4 additions and 1 deletions
|
@ -722,6 +722,7 @@ void fgCockpitUpdate( void ) {
|
||||||
// If these is anything to draw it will.
|
// If these is anything to draw it will.
|
||||||
fgUpdateHUD();
|
fgUpdateHUD();
|
||||||
}
|
}
|
||||||
|
|
||||||
#define DISPLAY_COUNTER
|
#define DISPLAY_COUNTER
|
||||||
#ifdef DISPLAY_COUNTER
|
#ifdef DISPLAY_COUNTER
|
||||||
else
|
else
|
||||||
|
|
|
@ -938,8 +938,10 @@ void fgHUDalphaInit( void ) {
|
||||||
|
|
||||||
|
|
||||||
void fgHUDReshape(void) {
|
void fgHUDReshape(void) {
|
||||||
if ( HUDtext )
|
if ( HUDtext ) {
|
||||||
delete HUDtext;
|
delete HUDtext;
|
||||||
|
HUDtext = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
HUD_TextSize = fgGetInt("/sim/startup/xsize") / 60;
|
HUD_TextSize = fgGetInt("/sim/startup/xsize") / 60;
|
||||||
HUD_TextSize = 10;
|
HUD_TextSize = 10;
|
||||||
|
|
Loading…
Add table
Reference in a new issue