Skip to content

Commit

Permalink
PulseAudio: fix small memleak
Browse files Browse the repository at this point in the history
  • Loading branch information
Tilka committed Aug 15, 2015
1 parent d8d6233 commit 0b73a9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Core/AudioCommon/PulseAudioStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 0b73a9e

Please sign in to comment.