- fixed memory leak with wipes set to pff.

In this case the start screen's texture wasn't destroyed.
This commit is contained in:
Christoph Oelckers 2018-09-02 21:13:36 +02:00
parent 22e8c57a59
commit f007473a9f
1 changed files with 3 additions and 1 deletions

View File

@ -638,7 +638,7 @@ CVAR(Bool, vid_activeinbackground, false, CVAR_ARCHIVE | CVAR_GLOBALCONFIG)
void D_Display () void D_Display ()
{ {
FTexture *wipe; FTexture *wipe = nullptr;
int wipe_type; int wipe_type;
sector_t *viewsec; sector_t *viewsec;
@ -870,6 +870,8 @@ void D_Display ()
if (!wipe || NoWipe < 0 || wipe_type == wipe_None) if (!wipe || NoWipe < 0 || wipe_type == wipe_None)
{ {
if (wipe != nullptr) delete wipe;
wipe = nullptr;
NetUpdate (); // send out any new accumulation NetUpdate (); // send out any new accumulation
// normal update // normal update
// draw ZScript UI stuff // draw ZScript UI stuff