Skip to content

Commit

Permalink
Fix crash when exiting the fronted under some circumstances
Browse files Browse the repository at this point in the history
Should the frontend quit while a client had registered but never displayed a notification would have resulted in a null dereference.
  • Loading branch information
jyavenard committed Jul 9, 2013
1 parent 9665e95 commit fb0d443
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mythtv/libs/libmythui/mythuinotificationcenter.cpp
Expand Up @@ -770,7 +770,10 @@ void NCPrivate::DeleteAllRegistrations(void)

for (; it != m_registrations.end();)
{
m_deletedScreens.append(*it);
if (*it)
{
m_deletedScreens.append(*it);
}
it = m_registrations.erase(it);
}
m_registrations.clear();
Expand Down

0 comments on commit fb0d443

Please sign in to comment.