mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 23:59:27 +01:00
PulseAudio: fix small memleak
This commit is contained in:
parent
d8d62336b5
commit
0b73a9ed25
@ -163,7 +163,8 @@ void PulseAudio::StateCallback(pa_context* c)
|
||||
void PulseAudio::UnderflowCallback(pa_stream* s)
|
||||
{
|
||||
m_pa_ba.tlength += BUFFER_SAMPLES * m_channels * m_bytespersample;
|
||||
pa_stream_set_buffer_attr(s, &m_pa_ba, nullptr, nullptr);
|
||||
pa_operation* op = pa_stream_set_buffer_attr(s, &m_pa_ba, nullptr, nullptr);
|
||||
pa_operation_unref(op);
|
||||
|
||||
WARN_LOG(AUDIO, "pulseaudio underflow, new latency: %d bytes", m_pa_ba.tlength);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user