Free the memory of all clipping arrays for each portal properly

Not the actual fix I'm intending to make with this branch, but it's needed anyway
This commit is contained in:
Monster Iestyn 2016-02-05 16:38:33 +00:00
parent 5320424269
commit 9973bedd5f

View file

@ -1360,6 +1360,9 @@ void R_RenderPlayerView(player_t *player)
// okay done. free it. // okay done. free it.
portalcullsector = NULL; // Just in case... portalcullsector = NULL; // Just in case...
portal_base = portal->next; portal_base = portal->next;
Z_Free(portal->ceilingclip);
Z_Free(portal->floorclip);
Z_Free(portal->frontscale);
Z_Free(portal); Z_Free(portal);
} }
// END PORTAL RENDERING // END PORTAL RENDERING