Fix double free in F_DisclaimerDrawScene

This commit is contained in:
SteelT 2024-04-07 16:20:01 -04:00
parent 730817437f
commit 2bc281b278

View file

@ -586,7 +586,7 @@ static void F_DisclaimerDrawScene(void)
if (intro_curtime == 0) if (intro_curtime == 0)
return; return;
// Anaglyph SEGA // Anaglyph SEGA
if (heretrulystarted && dc_state >= DISCLAIMER_SLIDE) if (heretrulystarted && dc_state >= DISCLAIMER_SLIDE)
V_DrawFixedPatch(0, 0, FRACUNIT, 0, W_CachePatchName(va("SEGA_B%02d", dc_segaframe), PU_CACHE), 0); V_DrawFixedPatch(0, 0, FRACUNIT, 0, W_CachePatchName(va("SEGA_B%02d", dc_segaframe), PU_CACHE), 0);
@ -598,7 +598,7 @@ static void F_DisclaimerDrawScene(void)
if (dc_state >= DISCLAIMER_SLIDE) if (dc_state >= DISCLAIMER_SLIDE)
overlayalpha = dc_bluesegafade << V_ALPHASHIFT; overlayalpha = dc_bluesegafade << V_ALPHASHIFT;
V_DrawFixedPatch(0, 0, FRACUNIT, overlayalpha, W_CachePatchName(va("SEGA_A%02d", dc_segaframe), PU_CACHE), 0); V_DrawFixedPatch(0, 0, FRACUNIT, overlayalpha, W_CachePatchName(va("SEGA_A%02d", dc_segaframe), PU_CACHE), 0);
} }
@ -682,7 +682,7 @@ static void F_DisclaimerDrawScene(void)
V_DrawString(16, 102, textalpha, twoText); V_DrawString(16, 102, textalpha, twoText);
V_DrawString(16, 142, textalpha, redText); V_DrawString(16, 142, textalpha, redText);
Z_Free(newText); Z_Free(redText);
} }
else else
{ {
@ -1767,7 +1767,7 @@ void F_TitleScreenDrawer(void)
INT32 trans; INT32 trans;
if (finalecount >= GONERTYPEWRITERWAIT) if (finalecount >= GONERTYPEWRITERWAIT)
{ {
INT32 checkcount = finalecount - GONERTYPEWRITERWAIT; INT32 checkcount = finalecount - GONERTYPEWRITERWAIT;
const char *typetext = "RING RACERS"; const char *typetext = "RING RACERS";
INT32 bx = V_TitleCardStringWidth(typetext, false); INT32 bx = V_TitleCardStringWidth(typetext, false);