mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
Fix memory leak with .ANM playback in Polymost
git-svn-id: https://svn.eduke32.com/eduke32@6541 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
bb836cfc0b
commit
3c8f050565
1 changed files with 3 additions and 1 deletions
|
@ -1272,7 +1272,9 @@ void gloadtile_art(int32_t dapic, int32_t dapal, int32_t tintpalnum, int32_t das
|
|||
// make the final texture with fullbright pixels.
|
||||
fullbrightloadingpass = 1;
|
||||
|
||||
pth->ofb = (pthtyp *)Xcalloc(1,sizeof(pthtyp));
|
||||
if (!pth->ofb)
|
||||
pth->ofb = (pthtyp *)Xcalloc(1,sizeof(pthtyp));
|
||||
|
||||
pth->flags |= PTH_HASFULLBRIGHT;
|
||||
|
||||
gloadtile_art(dapic, dapal, -1, 0, (dameth & ~DAMETH_MASKPROPS) | DAMETH_MASK, pth->ofb, 1);
|
||||
|
|
Loading…
Reference in a new issue