Skip to content

Commit

Permalink
ReflectorLogic bugfix: Memory access error
Browse files Browse the repository at this point in the history
Had to unregister the sink before deleting the audio decoder.
  • Loading branch information
sm0svx committed Nov 15, 2017
1 parent 2b2f365 commit 1004b8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/svxlink/svxlink/ReflectorLogic.cpp
Expand Up @@ -875,6 +875,7 @@ bool ReflectorLogic::setAudioCodec(const std::string& codec_name)
if (m_dec != 0)
{
sink = m_dec->sink();
m_dec->unregisterSink();
delete m_dec;
}
m_dec = Async::AudioDecoder::create(codec_name);
Expand Down
2 changes: 1 addition & 1 deletion src/versions
Expand Up @@ -8,7 +8,7 @@ LIBECHOLIB=1.3.2.99.0
LIBASYNC=1.4.0.99.7

# SvxLink versions
SVXLINK=1.5.99.15
SVXLINK=1.5.99.16
MODULE_HELP=1.0.0
MODULE_PARROT=1.1.1
MODULE_ECHOLINK=1.3.99.1
Expand Down

0 comments on commit 1004b8e

Please sign in to comment.