소스 검색

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

pull/5482/head
Marcos Paccor 1 개월 전
committed by GitHub
부모
커밋
16e6d325b9
No known key found for this signature in database GPG 키 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;
}

불러오는 중...
취소
저장