From 0b73a9ed2544b84df04325008842e36adf8e110e Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sat, 15 Aug 2015 12:51:11 +0200 Subject: [PATCH 1/3] PulseAudio: fix small memleak --- Source/Core/AudioCommon/PulseAudioStream.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/AudioCommon/PulseAudioStream.cpp b/Source/Core/AudioCommon/PulseAudioStream.cpp index 199d426474..b897f8beae 100644 --- a/Source/Core/AudioCommon/PulseAudioStream.cpp +++ b/Source/Core/AudioCommon/PulseAudioStream.cpp @@ -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); } From b3ff66dc7a2efd251977e142b224dac69eccd3f9 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sat, 15 Aug 2015 12:51:34 +0200 Subject: [PATCH 2/3] evdev: don't pass null path to the kernel --- Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp index d329189832..3d45244847 100644 --- a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp +++ b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp @@ -63,7 +63,7 @@ void Init(std::vector &controllerDevices) const char* devnode = udev_device_get_devnode(dev); // We only care about devices which we have read/write access to. - if (access(devnode, W_OK) == 0) + if (devnode && access(devnode, W_OK) == 0) { // Unfortunately udev gives us no way to filter out the non event device interfaces. // So we open it and see if it works with evdev ioctls or not. From b0cc02658b43c0d6ba40f36a707709691dcaf408 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sat, 15 Aug 2015 13:01:26 +0200 Subject: [PATCH 3/3] CachedInterpreter: avoid uninitialized value (The CachedInterpreter backend does not support block linking yet.) --- Source/Core/Core/PowerPC/CachedInterpreter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Core/Core/PowerPC/CachedInterpreter.cpp b/Source/Core/Core/PowerPC/CachedInterpreter.cpp index d2e19c5f81..bd07c27f37 100644 --- a/Source/Core/Core/PowerPC/CachedInterpreter.cpp +++ b/Source/Core/Core/PowerPC/CachedInterpreter.cpp @@ -10,6 +10,8 @@ void CachedInterpreter::Init() { m_code.reserve(CODE_SIZE / sizeof(Instruction)); + jo.enableBlocklink = false; + JitBaseBlockCache::Init(); code_block.m_stats = &js.st;