From 9e6bc05ffb77c5166efb1214ee56196b4a4deb03 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 4 Jan 2017 09:43:03 +0000 Subject: fixed memory leak git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@6947 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Output/shout/shoutoutput.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/plugins/Output/shout/shoutoutput.cpp') diff --git a/src/plugins/Output/shout/shoutoutput.cpp b/src/plugins/Output/shout/shoutoutput.cpp index d27bd81c7..6b5421995 100644 --- a/src/plugins/Output/shout/shoutoutput.cpp +++ b/src/plugins/Output/shout/shoutoutput.cpp @@ -46,6 +46,11 @@ ShoutOutput::~ShoutOutput() soxr_delete(m_soxr); m_soxr = 0; } + if(m_soxr_buf) + { + free(m_soxr_buf); + m_soxr_buf = 0; + } } bool ShoutOutput::initialize(quint32 freq, ChannelMap map, Qmmp::AudioFormat) -- cgit v1.2.3-13-gbd6f