Skip to content

Commit

Permalink
Fixed minor issue with locking scope for Event Groups.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Carroll committed Jun 23, 2011
1 parent 6c34b19 commit 435a6d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/threads/Event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ void CEvent::addGroup(XbmcThreads::CEventGroup* group)

void CEvent::removeGroup(XbmcThreads::CEventGroup* group)
{
CSingleLock lock(mutex);
if (groups)
{
CSingleLock lock(mutex);
for (std::vector<XbmcThreads::CEventGroup*>::iterator iter = groups->begin(); iter != groups->end(); iter++)
{
if ((*iter) == group)
Expand Down

0 comments on commit 435a6d8

Please sign in to comment.