Merge branch 'for-upstream-stbvorbis-fix-memleaks' of https://github.com/manxorist/stb
This commit is contained in:
commit
8f368799e1
@ -2246,6 +2246,11 @@ static void decode_residue(vorb *f, float *residue_buffers[], int ch, int n, int
|
||||
}
|
||||
done:
|
||||
CHECK(f);
|
||||
#ifndef STB_VORBIS_DIVIDES_IN_RESIDUE
|
||||
temp_free(f,part_classdata);
|
||||
#else
|
||||
temp_free(f,classifications);
|
||||
#endif
|
||||
temp_alloc_restore(f,temp_alloc_point);
|
||||
}
|
||||
|
||||
@ -2891,6 +2896,7 @@ static void inverse_mdct(float *buffer, int n, vorb *f, int blocktype)
|
||||
}
|
||||
}
|
||||
|
||||
temp_free(f,buf2);
|
||||
temp_alloc_restore(f,save_point);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user