Flip release of buffer;
First it needs to be taken out of the processing chain, then it can be released. The inverse of the initialization.
This commit is contained in:
parent
04afba260f
commit
55b7c5adc9
|
|
@ -612,8 +612,8 @@ void UnloadAudioBuffer(AudioBuffer *buffer)
|
||||||
{
|
{
|
||||||
if (buffer != NULL)
|
if (buffer != NULL)
|
||||||
{
|
{
|
||||||
ma_data_converter_uninit(&buffer->converter, NULL);
|
|
||||||
UntrackAudioBuffer(buffer);
|
UntrackAudioBuffer(buffer);
|
||||||
|
ma_data_converter_uninit(&buffer->converter, NULL);
|
||||||
RL_FREE(buffer->data);
|
RL_FREE(buffer->data);
|
||||||
RL_FREE(buffer);
|
RL_FREE(buffer);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user