mirror of
https://github.com/nothings/stb.git
synced 2026-01-08 13:43:17 +00:00
Merge branch 'for-upstream-stbvorbis-fix-memleaks' of https://github.com/manxorist/stb
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user