mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-19 02:22:01 +00:00
fix wrong malloc size
This commit is contained in:
parent
6f44bebff8
commit
109bfc1ccf
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ struct resampler {
|
|||
|
||||
void *Snd_ResamplerInit()
|
||||
{
|
||||
struct resampler *data = malloc(sizeof(struct resampler *));
|
||||
struct resampler *data = malloc(sizeof(struct resampler));
|
||||
data->channels = 1;
|
||||
data->st = speex_resampler_init(1, 44100, 44100, Snd_ResamplerQuality, NULL);
|
||||
return data;
|
||||
|
|
Loading…
Reference in a new issue