Преглед изворни кода

[raudio] Fix freeing the wrong memory (#5481)

pull/5482/head
Marcos Paccor пре 3 недеља
committed by GitHub
родитељ
комит
16e6d325b9
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      src/raudio.c

+ 1
- 1
src/raudio.c Прегледај датотеку

@ -1249,7 +1249,7 @@ void WaveFormat(Wave *wave, int sampleRate, int sampleSize, int channels)
frameCount = (ma_uint32)ma_convert_frames(data, frameCount, formatOut, channels, sampleRate, wave->data, frameCountIn, formatIn, wave->channels, wave->sampleRate);
if (frameCount == 0)
{
RL_FREE(wave->data);
RL_FREE(data);
TRACELOG(LOG_WARNING, "WAVE: Failed format conversion");
return;
}

Loading…
Откажи
Сачувај