Permalink
Browse files

MythMusic: also remove cd tracks from the music_map when cleared

  • Loading branch information...
Paul Harrison
Paul Harrison committed May 19, 2013
1 parent 44d807b commit ad76fdc5c71aff19de6d42a43bc977d9abc9cbcd
Showing with 4 additions and 0 deletions.
  1. +4 −0 mythtv/libs/libmythmetadata/musicmetadata.cpp
@@ -1264,6 +1264,10 @@ void AllMusic::clearCDData(void)
{
while (!m_cdData.empty())
{
MusicMetadata *mdata = m_cdData.back();
if (music_map.contains(mdata->ID()))
music_map.remove(mdata->ID());
delete m_cdData.back();
m_cdData.pop_back();
}

0 comments on commit ad76fdc

Please sign in to comment.