This website works better with JavaScript.
Home
Explore
Help
Sign In
Archivist
/
raylib-src
mirror of
https://github.com/raysan5/raylib
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
24
Wiki
Activity
Browse Source
[raudio] Fix freeing the wrong memory (
#5481
)
pull/5482/head
Marcos Paccor
2 days ago
committed by
GitHub
parent
0bcf79ce28
commit
16e6d325b9
No known key found for this signature in database
GPG Key ID:
B5690EEEBB952194
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/raudio.c
+ 1
- 1
src/raudio.c
View File
@ -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
;
}
Write
Preview
Loading…
Cancel
Save