Skip to content

Commit

Permalink
Backport [27271] from trunk
Browse files Browse the repository at this point in the history
Fixes a valgrind-detected issue (reading outside of allocated memory)



git-svn-id: http://svn.mythtv.org/svn/branches/release-0-24-fixes@27272 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information
Beirdo committed Nov 18, 2010
1 parent 47ebb94 commit 6427d5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/audiooutputsettings.cpp
Expand Up @@ -239,7 +239,7 @@ void AudioOutputSettings::SetBestSupportedChannels(int channels)
vector<int>::reverse_iterator it;

for (it = m_channels.rbegin();
*it >= channels && it < m_channels.rend();
it != m_channels.rend() && *it >= channels;
it++)
m_channels.pop_back();
m_channels.push_back(channels);
Expand Down

0 comments on commit 6427d5a

Please sign in to comment.