Permalink
Browse files

Fix use after free in MediaMonitor::RemoveDevice(), found by cppcheck

  • Loading branch information...
stuartm committed Dec 5, 2012
1 parent a72652c commit af4db3123e726a16da936a74de1ec4b6c2cb2340
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/libs/libmyth/mythmediamonitor.cpp
@@ -380,9 +380,9 @@ bool MediaMonitor::RemoveDevice(const QString &dev)
{
if (m_UseCount[*it] == 0)
{
m_UseCount.remove(*it);
(*it)->deleteLater();
m_Devices.erase(it);
m_UseCount.remove(*it);
}
else
{

0 comments on commit af4db31

Please sign in to comment.