all repos — mgba @ 6a5ce56f73d4df6f841324eca08b79c0792f4cc2

mGBA Game Boy Advance Emulator

Qt: AudioProcessor::m_context can be null
Vicki Pfau vi@endrift.com
Sat, 12 Jan 2019 15:56:46 -0800
commit

6a5ce56f73d4df6f841324eca08b79c0792f4cc2

parent

c1eb1e5ae1843b4d4781fc39c8edaf362943c78e

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/AudioProcessor.hsrc/platform/qt/AudioProcessor.h

@@ -50,7 +50,7 @@

virtual void requestSampleRate(unsigned) = 0; protected: - mCoreThread* input() { return m_context->thread(); } + mCoreThread* input() { return m_context ? m_context->thread() : nullptr; } private: std::shared_ptr<CoreController> m_context;